Skip to content

Commit

Permalink
When the collection is updated, the collectionWordCloudVersion is res…
Browse files Browse the repository at this point in the history
…et to 0.

This should allow card-view to reset to null when the collection changes so it doesn't show an ou tof date cloud.

Part of #694.
  • Loading branch information
jkomoros committed Aug 4, 2024
1 parent 28316b1 commit fd53f29
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/reducers/collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ const app = (state : CollectionState = INITIAL_STATE, action : SomeAction) : Col
activeViewMode: action.viewMode,
activeViewModeExtra: action.viewModeExtra,
activeRenderOffset: 0,
collectionWordCloudVersion: 0
};
case UPDATE_COLLECTION_SHAPSHOT:
//TODO: figure out how to fire this every time one of the other ones
Expand Down

0 comments on commit fd53f29

Please sign in to comment.