Skip to content

Commit

Permalink
perf: Improve code compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerwin-L committed Feb 3, 2023
1 parent bd56cb0 commit 7e54917
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const SwitchAttributeList: React.FC<IProps> = (props) => {
});
}
return () => {
toolInstance.unbindAll('changeAttributeSidebar');
toolInstance?.unbindAll('changeAttributeSidebar');
};
}, [toolInstance, listRef]);

Expand Down

0 comments on commit 7e54917

Please sign in to comment.