Skip to content

Commit

Permalink
fix: fix filter saving
Browse files Browse the repository at this point in the history
  • Loading branch information
islxyqwe committed Sep 14, 2023
1 parent 410620c commit af59ea9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { observer } from "mobx-react-lite";
import React from "react";
import { useTranslation } from "react-i18next";

import { toJS } from 'mobx';
import Modal from "../../components/modal";
import type { IFilterField, IFilterRule } from "../../interfaces";
import { useGlobalStore } from "../../store";
Expand Down Expand Up @@ -45,7 +45,7 @@ const FilterEditDialog: React.FC = observer(() => {

React.useEffect(() => {
if (field !== ufRef.current) {
setUncontrolledField(field);
setUncontrolledField(toJS(field) );
}
}, [field]);

Expand Down

1 comment on commit af59ea9

@vercel
Copy link

@vercel vercel bot commented on af59ea9 Sep 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.