Skip to content

Commit

Permalink
fix(cf): rule list panel were not updated in a timely manner (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gggpound committed Mar 28, 2024
1 parent abbe770 commit c77c66d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export const RuleList = (props: IRuleListProps) => {

useEffect(() => {
ruleListSet(getRuleList);
}, [selectValue, fetchRuleListId]);
}, [selectValue, fetchRuleListId, unitId, subUnitId]);

useEffect(() => {
if (selectValue === '2') {
Expand All @@ -185,7 +185,7 @@ export const RuleList = (props: IRuleListProps) => {
return () => {
subscription.unsubscribe();
};
}, [univerInstanceService, selectValue]);
}, [univerInstanceService, selectValue, unitId, subUnitId]);

useEffect(() => {
const dispose = conditionalFormatRuleModel.$ruleChange.subscribe(() => {
Expand Down

0 comments on commit c77c66d

Please sign in to comment.