From 6131075fdebe51407f762dc351a519b29bc68b81 Mon Sep 17 00:00:00 2001 From: Sebastian Klingler Date: Tue, 4 Apr 2023 11:01:01 -0500 Subject: [PATCH] [C-2406] Fix repeated edits of same track (#3157) --- packages/web/src/common/store/cache/tracks/sagas.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/web/src/common/store/cache/tracks/sagas.js b/packages/web/src/common/store/cache/tracks/sagas.js index f6f0e13433d..0b0b8842ad2 100644 --- a/packages/web/src/common/store/cache/tracks/sagas.js +++ b/packages/web/src/common/store/cache/tracks/sagas.js @@ -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 } ]) )