fix: lint

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

View File

@ -594,10 +594,9 @@ class App extends React.Component<AppProps, AppState> {
private initializedEmbeds = new Set<ExcalidrawIframeLikeElement["id"]>();
private handleToastClose = () => {
this.setToast(null);
this.setToast(null);
};
private elementsPendingErasure: ElementsPendingErasure = new Set();
public flowChartCreator: FlowChartCreator = new FlowChartCreator();
@ -1714,12 +1713,12 @@ class App extends React.Component<AppProps, AppState> {
)}
{this.state.toast !== null && (
<Toast
message={this.state.toast.message}
onClose={this.handleToastClose} // ✅ Stable reference
duration={this.state.toast.duration}
closable={this.state.toast.closable}
/>
<Toast
message={this.state.toast.message}
onClose={this.handleToastClose}
duration={this.state.toast.duration}
closable={this.state.toast.closable}
/>
)}
{this.state.contextMenu && (