Skip to content

Commit

Permalink
Message isEmpty check should include all ui data
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdjohnson committed May 2, 2024
1 parent 6151bf8 commit 8304d30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/MessageModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const MessageModel = types
})
.views(self => ({
isBlank() {
return self.content || _.isEmpty(self.imageUrls) || !self.extras?.error
return _.isEmpty(self.content || self.imageUrls || self.extras?.error)
},
}))
.actions(self => ({
Expand Down

0 comments on commit 8304d30

Please sign in to comment.