Skip to content

Commit 46dea12

Browse files
authored
fix(focus-mode): plain object for redux connect (#4061)
1 parent 90eaccc commit 46dea12

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/compass-aggregations/src/components/focus-mode/focus-mode-stage-preview.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export const FocusModeStageInput = connect(
184184
},
185185
}: RootState) => {
186186
if (stageIndex === -1) {
187-
return null;
187+
return {};
188188
}
189189

190190
const previousStageIndex =
@@ -216,7 +216,7 @@ export const FocusModeStageInput = connect(
216216
(isAtlasOnlyStage(previousStage.stageOperator || '') &&
217217
isMissingAtlasOnlyStageSupport)
218218
) {
219-
return null;
219+
return {};
220220
}
221221

222222
return {
@@ -238,7 +238,7 @@ export const FocusModeStageOutput = connect(
238238
},
239239
}: RootState) => {
240240
if (stageIndex === -1) {
241-
return null;
241+
return {};
242242
}
243243
const stage = stages[stageIndex];
244244
const isMissingAtlasOnlyStageSupport = isMissingAtlasStageSupport(

0 commit comments

Comments
 (0)