fix state update on unmounted component error

This commit is contained in:
Red Adaya 2024-05-02 07:03:12 +08:00
parent 67df71d1ca
commit fbc7bc9688

View File

@ -108,9 +108,9 @@ class RightSideBar extends React.Component<RightSideBarProps, {}> {
<i className="fa-sharp fa-regular fa-xmark"></i>
</Button>
</div>
<If condition={this.mode.get() == "keybind"}>
{/* <If condition={this.mode.get() == "keybind"}>
<KeybindDevPane></KeybindDevPane>
</If>
</If> */}
<If condition={this.mode.get() == "wavebook"}>
<WaveBookDisplay></WaveBookDisplay>
</If>