|
@@ -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();
|
|
@@ -1712,14 +1711,14 @@ class App extends React.Component<AppProps, AppState> {
|
|
|
/>
|
|
|
</ElementCanvasButtons>
|
|
|
)}
|
|
|
-
|
|
|
+
|
|
|
{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 && (
|