diff --git a/src/components/TreeView/Redux/TreeViewActions.ts b/src/components/TreeView/Redux/TreeViewActions.ts index ec9b82d199..f193907f47 100644 --- a/src/components/TreeView/Redux/TreeViewActions.ts +++ b/src/components/TreeView/Redux/TreeViewActions.ts @@ -3,7 +3,7 @@ import { Action, PayloadAction } from "@reduxjs/toolkit"; import { SemanticDomain, SemanticDomainTreeNode } from "api/models"; import { getSemanticDomainTreeNode } from "backend"; import { - resetAction, + resetTreeAction, setCurrentDomainAction, setDomainLanguageAction, setTreeOpenAction, @@ -22,7 +22,7 @@ export function openTree(): PayloadAction { } export function resetTree(): Action { - return resetAction(); + return resetTreeAction(); } export function setCurrentDomain( diff --git a/src/components/TreeView/Redux/TreeViewReducer.ts b/src/components/TreeView/Redux/TreeViewReducer.ts index c67a1a21a9..8de4cdedb7 100644 --- a/src/components/TreeView/Redux/TreeViewReducer.ts +++ b/src/components/TreeView/Redux/TreeViewReducer.ts @@ -7,7 +7,7 @@ const treeViewSlice = createSlice({ name: "treeViewState", initialState: defaultState, reducers: { - resetAction: () => defaultState, + resetTreeAction: () => defaultState, setCurrentDomainAction: (state, action) => { state.currentDomain = action.payload; }, @@ -24,7 +24,7 @@ const treeViewSlice = createSlice({ }); export const { - resetAction, + resetTreeAction, setCurrentDomainAction, setDomainLanguageAction, setTreeOpenAction,