Skip to content

Commit

Permalink
Fix aspectRation when error
Browse files Browse the repository at this point in the history
  • Loading branch information
Krato authored Oct 28, 2020
1 parent af86175 commit 7db92c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Invokes/NovaEmbedData.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
});

Expand Down

0 comments on commit 7db92c3

Please sign in to comment.