X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/1feb5aaffe6fee4a9c8c8c64877f1da6f3490e06..9438812a13875c06996ed7190f8faf21011910bd:/src/store/project/project-reducer.ts diff --git a/src/store/project/project-reducer.ts b/src/store/project/project-reducer.ts index fa92f5f2..f5af23ab 100644 --- a/src/store/project/project-reducer.ts +++ b/src/store/project/project-reducer.ts @@ -16,7 +16,6 @@ export type ProjectState = { interface ProjectCreator { opened: boolean; - pending: boolean; ownerUuid: string; error?: string; } @@ -106,7 +105,6 @@ const initialState: ProjectState = { currentItemId: "", creator: { opened: false, - pending: false, ownerUuid: "" } }; @@ -114,7 +112,7 @@ const initialState: ProjectState = { export const projectsReducer = (state: ProjectState = initialState, action: ProjectAction) => { return projectActions.match(action, { - OPEN_PROJECT_CREATOR: ({ ownerUuid }) => updateCreator(state, { ownerUuid, opened: true, pending: false }), + OPEN_PROJECT_CREATOR: ({ ownerUuid }) => updateCreator(state, { ownerUuid, opened: true }), CLOSE_PROJECT_CREATOR: () => updateCreator(state, { opened: false }), CREATE_PROJECT: () => updateCreator(state, { error: undefined }), CREATE_PROJECT_SUCCESS: () => updateCreator(state, { opened: false, ownerUuid: "" }), @@ -139,7 +137,6 @@ export const projectsReducer = (state: ProjectState = initialState, action: Proj const items = _.cloneDeep(state.items); const item = findTreeItem(items, itemId); if (item) { - item.toggled = true; item.open = !item.open; } return { @@ -153,7 +150,6 @@ export const projectsReducer = (state: ProjectState = initialState, action: Proj resetTreeActivity(items); const item = findTreeItem(items, itemId); if (item) { - item.toggled = true; item.active = true; } return {