From b49ca531d77614d3029b4d34c39df3e2938c39cf Mon Sep 17 00:00:00 2001 From: Stephen Smith Date: Wed, 24 May 2023 09:38:19 -0400 Subject: [PATCH] 20031: Avoid expanding pre-selected picker tree item until loaded Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- src/store/collections/collection-partial-copy-actions.ts | 2 +- src/store/tree-picker/tree-picker-actions.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/store/collections/collection-partial-copy-actions.ts b/src/store/collections/collection-partial-copy-actions.ts index 8e8dbdbb..7897efc4 100644 --- a/src/store/collections/collection-partial-copy-actions.ts +++ b/src/store/collections/collection-partial-copy-actions.ts @@ -4,7 +4,7 @@ import { Dispatch } from 'redux'; import { RootState } from 'store/store'; -import { FormErrors, initialize, startSubmit, stopSubmit } from 'redux-form'; +import { initialize, startSubmit, stopSubmit } from 'redux-form'; import { resetPickerProjectTree } from 'store/project-tree-picker/project-tree-picker-actions'; import { dialogActions } from 'store/dialog/dialog-actions'; import { ServiceRepository } from 'services/services'; diff --git a/src/store/tree-picker/tree-picker-actions.ts b/src/store/tree-picker/tree-picker-actions.ts index bf40394c..ad657f14 100644 --- a/src/store/tree-picker/tree-picker-actions.ts +++ b/src/store/tree-picker/tree-picker-actions.ts @@ -311,7 +311,6 @@ export const loadInitialValue = (initialValue: string, pickerId: string) => pickerId: pickerTreeId, subtree: tree })); - dispatch(treePickerActions.EXPAND_TREE_PICKER_NODES({ ids: [pickerTreeRootUuid], pickerId: pickerTreeId })); dispatch(treePickerActions.ACTIVATE_TREE_PICKER_NODE({ id: initialValue, pickerId: pickerTreeId })); dispatch(treePickerSearchActions.REFRESH_TREE_PICKER({ pickerId: pickerTreeId })); } @@ -561,7 +560,7 @@ export const createInitialLocationTree = (data: Array()); }; -- 2.39.5