Update Post component, show state error when status account is null or missing

pull/4247/head
Daniel Supernault 2023-03-25 02:38:25 -06:00
rodzic ed961374a5
commit e6dc62347c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -197,6 +197,10 @@
if(!res.data || !res.data.hasOwnProperty('id')) {
this.$router.push('/i/web/404');
}
if(!res.data.hasOwnProperty('account') || !res.data.account) {
this.postStateError = true;
return;
}
this.post = res.data;
this.media = this.post.media_attachments;
this.profile = this.post.account;