From 4788e07143f603975a16a3bd38dc0ec6e1d5d558 Mon Sep 17 00:00:00 2001 From: Dave Falke Date: Sun, 10 Sep 2023 13:52:58 -0400 Subject: [PATCH] Remove entity from function call, so that featured variables are checked for the entire entity tree --- packages/libs/eda/src/lib/map/analysis/appState.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/libs/eda/src/lib/map/analysis/appState.ts b/packages/libs/eda/src/lib/map/analysis/appState.ts index f27e62a375..6c78646169 100644 --- a/packages/libs/eda/src/lib/map/analysis/appState.ts +++ b/packages/libs/eda/src/lib/map/analysis/appState.ts @@ -119,11 +119,8 @@ export function useAppState(uiStateKey: string, analysisState: AnalysisState) { getOrElseW(() => undefined) ); - const studyMetadata = useStudyMetadata(); const getDefaultVariableDescriptor = useGetDefaultVariableDescriptor(); - const defaultVariable = getDefaultVariableDescriptor( - studyMetadata.rootEntity.id - ); + const defaultVariable = getDefaultVariableDescriptor(); const defaultAppState: AppState = useMemo( () => ({