From efc56840d5b7fe69e263031c9a5d2d4bdbf20016 Mon Sep 17 00:00:00 2001 From: audius-infra Date: Thu, 18 Jan 2024 17:40:47 -0800 Subject: [PATCH] [C-3633] Fix upload tags --- packages/web/src/common/store/upload/sagas.js | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/packages/web/src/common/store/upload/sagas.js b/packages/web/src/common/store/upload/sagas.js index 9571cfe2ca1..607d5401308 100644 --- a/packages/web/src/common/store/upload/sagas.js +++ b/packages/web/src/common/store/upload/sagas.js @@ -80,19 +80,9 @@ const combineMetadata = (trackMetadata, collectionMetadata) => { if (!metadata.release_date) metadata.release_date = collectionMetadata.release_date - if (collectionMetadata.tags) { - if (!metadata.tags) { - // Take collection tags - metadata.tags = collectionMetadata.tags - } else { - // Combine tags and dedupe - metadata.tags = [ - ...new Set([ - ...metadata.tags.split(','), - ...collectionMetadata.tags.split(',') - ]) - ].join(',') - } + if (metadata.tags === null && collectionMetadata.tags) { + // Take collection tags + metadata.tags = collectionMetadata.tags } return trackMetadata }