Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
diff --git a/reducers/entities.js b/reducers/entities.js
index 3cf689d..764be35 100644
--- a/reducers/entities.js
+++ b/reducers/entities.js
@@ -87,7 +87,10 @@ function storeVideos(state, { payload }) {
}
const normalShow = normalizeShow(payload, getRelationship(payload, video, 'show'));
newState[normalVideo.id] = normalVideo;
- newState[normalShow.id] = normalShow;
+ // VideoList may have stale Show entities, do not overwrite
+ if (!state[normalShow.id]) {
+ newState[normalShow.id] = normalShow;
+ }
return newState;
}, {
...state
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment