From d3b0b8600fa0728321311e163c0c886dbd139334 Mon Sep 17 00:00:00 2001 From: Pawel Kowalczyk Date: Mon, 8 Apr 2019 14:21:54 +0200 Subject: [PATCH] refs #15027-delete-version-attr-on-update-collection Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk --- src/store/collection-panel/collection-panel-action.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/store/collection-panel/collection-panel-action.ts b/src/store/collection-panel/collection-panel-action.ts index 919cd908..cd426471 100644 --- a/src/store/collection-panel/collection-panel-action.ts +++ b/src/store/collection-panel/collection-panel-action.ts @@ -44,6 +44,8 @@ export const createCollectionTag = (data: TagProperty) => try { if (item) { item.properties[data.key] = data.value; + const version = 'version'; + delete item[version]; const updatedCollection = await services.collectionService.update(uuid, item); dispatch(resourcesActions.SET_RESOURCES([updatedCollection])); dispatch(snackbarActions.OPEN_SNACKBAR({ message: "Tag has been successfully added.", hideDuration: 2000, kind: SnackbarKind.SUCCESS })); -- 2.30.2