Skip to content

Commit b22c3fc

Browse files
committed
refactor: Extract variable
1 parent 6d1b6a0 commit b22c3fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/configurator/components/add-dataset-dialog.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,9 @@ export const PreviewDataTable: React.FC<{
196196
fetchingComponents,
197197
}) => {
198198
const locale = useLocale();
199+
const isQueryPaused = !otherCubeComponents || !currentComponents;
199200
const [observations] = useDataCubesObservationsQuery({
200-
pause: !otherCubeComponents || !currentComponents,
201+
pause: isQueryPaused,
201202
variables: {
202203
locale,
203204
sourceType: dataSource.type,

0 commit comments

Comments
 (0)