Skip to content

Commit 610a7ac

Browse files
authored
fix: Fix bug causing E2E to fail (#4641)
1 parent 0a196f4 commit 610a7ac

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

keep-ui/features/presets/presets-manager/ui/alerts-rules-builder.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -276,12 +276,8 @@ export const AlertsRulesBuilder = ({
276276
}, []);
277277

278278
useEffect(() => {
279-
if (defaultQuery === "") {
280-
handleClearInput();
281-
} else {
282-
setCELRules(defaultQuery);
283-
}
284-
}, [defaultQuery, handleClearInput]);
279+
setCELRules(defaultQuery);
280+
}, [defaultQuery]);
285281

286282
useEffect(() => {
287283
// Use the constructCELRules function to set the initial value of celRules

0 commit comments

Comments
 (0)