Never pass mutable data to selectors

This commit is contained in:
Fedor Indutny 2023-01-13 13:16:58 -08:00 committed by GitHub
parent c58a723f45
commit b37be94cb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -357,7 +357,9 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
const { storyChanged } = window.reduxActions.stories;
if (isStory(this.attributes)) {
const storyData = getStoryDataFromMessageAttributes(this.attributes);
const storyData = getStoryDataFromMessageAttributes({
...this.attributes,
});
if (!storyData) {
return;