Skip to content

Commit

Permalink
more missing data error prevention
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalko committed Aug 30, 2023
1 parent e7c74f8 commit 7e50a1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

> Upload, embed, and manage Cloudflare Stream videos from your CP.
Demo and `.env` setup instructions here - be up and running in less than 60 seconds!

[Click to see short video on Loom](https://www.loom.com/share/30ee4efe1ab7436188411390c2fa3807?sid=9c3e3361-3519-48c9-9ec5-fd2a56cc19d6)

## THIS IS A WORKING ADDON, BUT BIG CHANGES AUG/SEPT 2023 MAY BREAK WITH UPDATES

Please try this out, but be watchful when you `composer update` till I say.
Expand Down
2 changes: 1 addition & 1 deletion src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function bootAddon()
} else {
$response = json_decode($response, true);

$videos = $response['result'];
$videos = $response['result'] ?? [];

return view("cf-stream::index", compact('videos'));
}
Expand Down

0 comments on commit 7e50a1f

Please sign in to comment.