From 7db92c33ce64146f460716189e6ed7364161116d Mon Sep 17 00:00:00 2001 From: Eric Lagarda Date: Wed, 28 Oct 2020 09:22:37 +0100 Subject: [PATCH] Fix aspectRation when error --- src/Invokes/NovaEmbedData.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Invokes/NovaEmbedData.php b/src/Invokes/NovaEmbedData.php index 1f39a5e..114b5af 100644 --- a/src/Invokes/NovaEmbedData.php +++ b/src/Invokes/NovaEmbedData.php @@ -23,7 +23,7 @@ public function __invoke(Request $request, $url = null, $type = null, $cacheTime try { return Embed::create($url); } catch (InvalidUrlException $e) { - return (object) ['code' => null, 'image' => null]; + return (object) ['code' => null, 'image' => null, 'aspectRatio' => null]; } });