Update PortfolioController, fix empty post ids condition

pull/4237/head
Daniel Supernault 2023-03-17 01:54:01 -06:00
rodzic d1358b0664
commit 7f06f5f555
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
2 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -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);
}

Wyświetl plik

@ -216,6 +216,9 @@
this.bootIntersectors()
}, 500);
})
.catch(err => {
this.loading = false;
})
},
postUrl(res) {