fix: lint

This commit is contained in:
Ryan Di
2025-07-03 16:50:57 +10:00
parent 21f492fb13
commit 118fd7bafa

View File

@ -597,7 +597,6 @@ class App extends React.Component<AppProps, AppState> {
this.setToast(null); this.setToast(null);
}; };
private elementsPendingErasure: ElementsPendingErasure = new Set(); private elementsPendingErasure: ElementsPendingErasure = new Set();
public flowChartCreator: FlowChartCreator = new FlowChartCreator(); public flowChartCreator: FlowChartCreator = new FlowChartCreator();
@ -1716,7 +1715,7 @@ class App extends React.Component<AppProps, AppState> {
{this.state.toast !== null && ( {this.state.toast !== null && (
<Toast <Toast
message={this.state.toast.message} message={this.state.toast.message}
onClose={this.handleToastClose} // ✅ Stable reference onClose={this.handleToastClose}
duration={this.state.toast.duration} duration={this.state.toast.duration}
closable={this.state.toast.closable} closable={this.state.toast.closable}
/> />