Skip to content

Commit

Permalink
Remove entity from function call, so that featured variables are chec…
Browse files Browse the repository at this point in the history
…ked for the entire entity tree (#487)
  • Loading branch information
dmfalke authored Sep 10, 2023
1 parent 349fa3e commit a028f60
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/libs/eda/src/lib/map/analysis/appState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
() => ({
Expand Down

0 comments on commit a028f60

Please sign in to comment.