Преглед на файлове

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

Daniel Supernault преди 2 години
родител
ревизия
e6dc62347c
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      resources/assets/components/Post.vue

+ 4 - 0
resources/assets/components/Post.vue

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