mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-01-16 09:54:44 +00:00
Proper null handling
FYI @mattwr18
This commit is contained in:
parent
3447cdffeb
commit
9a72e7b9e6
@ -47,7 +47,8 @@ export default {
|
||||
},
|
||||
watch: {
|
||||
Post(post) {
|
||||
this.comments = post[0].comments || []
|
||||
const [first] = post
|
||||
this.comments = first && first.comments || []
|
||||
},
|
||||
},
|
||||
apollo: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user