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

View File

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