Skip to content

Commit e6dc623

Browse files
committed
Update Post component, show state error when status account is null or missing
1 parent ed96137 commit e6dc623

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

resources/assets/components/Post.vue

+4
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,10 @@
197197
if(!res.data || !res.data.hasOwnProperty('id')) {
198198
this.$router.push('/i/web/404');
199199
}
200+
if(!res.data.hasOwnProperty('account') || !res.data.account) {
201+
this.postStateError = true;
202+
return;
203+
}
200204
this.post = res.data;
201205
this.media = this.post.media_attachments;
202206
this.profile = this.post.account;

0 commit comments

Comments
 (0)