Skip to content

Commit

Permalink
[C-2406] Fix repeated edits of same track (#3157)
Browse files Browse the repository at this point in the history
  • Loading branch information
sliptype authored Apr 4, 2023
1 parent 3ae27d1 commit 6131075
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/web/src/common/store/cache/tracks/sagas.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,12 @@ function* confirmEditTrack(
confirmedTrack._is_publishing = false
}
// Update the cached track so it no longer contains image upload artifacts
const { artwork: ignoredArtwork, ...metadata } = confirmedTrack
yield put(
cacheActions.update(Kind.TRACKS, [
{
id: confirmedTrack.track_id,
metadata: { ...confirmedTrack, artwork: {} }
metadata
}
])
)
Expand Down

0 comments on commit 6131075

Please sign in to comment.