diff --git a/app/Http/Controllers/PortfolioController.php b/app/Http/Controllers/PortfolioController.php index 297b89d1b..c5f6295f4 100644 --- a/app/Http/Controllers/PortfolioController.php +++ b/app/Http/Controllers/PortfolioController.php @@ -172,7 +172,7 @@ class PortfolioController extends Controller } protected function getCustomFeed($portfolio) { - if(!$portfolio->metadata['posts']) { + if(!isset($portfolio->metadata['posts']) || !$portfolio->metadata['posts']) { return response()->json([], 400); } diff --git a/resources/assets/js/components/PortfolioProfile.vue b/resources/assets/js/components/PortfolioProfile.vue index 46677dc31..8593ccc76 100644 --- a/resources/assets/js/components/PortfolioProfile.vue +++ b/resources/assets/js/components/PortfolioProfile.vue @@ -216,6 +216,9 @@ this.bootIntersectors() }, 500); }) + .catch(err => { + this.loading = false; + }) }, postUrl(res) {