Never pass mutable data to selectors
This commit is contained in:
parent
c58a723f45
commit
b37be94cb9
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue