Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
Follow up fix for track removal from playlist with entity manager (#1817
Browse files Browse the repository at this point in the history
)
  • Loading branch information
isaacsolo committed Aug 29, 2022
1 parent 1b2638c commit 6047185
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/web/src/common/store/cache/collections/sagas.js
Original file line number Diff line number Diff line change
Expand Up @@ -602,9 +602,13 @@ function* removeTrackFromPlaylistAsync(action) {
return false
}

if (t.metadata_time && t.metadata_time !== action.timestamp) {
// entity manager is enabled
return false
if (t.metadata_time) {
if (t.metadata_time === action.timestamp) {
// entity manager is enabled
return true
} else {
return false
}
}

if (t.time !== action.timestamp) {
Expand Down

0 comments on commit 6047185

Please sign in to comment.