Skip to content

Commit

Permalink
feat: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
shahargl committed Dec 18, 2023
1 parent 2771344 commit f51fc2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keep-ui/app/rules/rules.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ export default function Page() {
setQuery(add(query, { field: availableFields[0].name, operator: '=', value: '' }, props.path));
}

const validateFormData = (formData, query) => {
const validateFormData = (formData: any, query: any) => {
const errors: Record<string, string> = {};

if (!formData.ruleName) {
Expand Down Expand Up @@ -574,7 +574,7 @@ export default function Page() {
.then((response) => response.json())
.then((data) => {
// Delete Ok, remove from rules
const newRules = rules.filter((rule) => rule.id !== id);
const newRules = rules.filter((rule) => rule.id !== activeRow);
setRules(newRules);
setActiveRow(null);
setEditMode(false);
Expand Down

0 comments on commit f51fc2d

Please sign in to comment.