Skip to content

Commit c07157f

Browse files
authored
Merge pull request #84 from DagsHub/improve-query-builder
re-set root condition, when query input is changed
2 parents 1ca43e0 + 9a67761 commit c07157f

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "git",
55
"url": "git+https://github.com/dagshub/design-system.git"
66
},
7-
"version": "0.1.71",
7+
"version": "0.1.72",
88
"description": "A component library for consuming dagshub user interfaces.",
99
"main": "dist/cjs/index.js",
1010
"module": "dist/esm/index.js",

src/components/dagshub/data-engine/queryBuilder/QueryBuilderContext.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ export const QueryBuilderProvider = ({
188188
);
189189

190190
useEffect(() => {
191+
setRootCondition(() => getInitialQuery());
191192
setIsDisplayableInSimpleMode(checkIfConditionIsDisplayableInSimpleMode(queryInput.query));
192193
}, [queryInput.query]);
193194

0 commit comments

Comments
 (0)