Przeglądaj źródła

:bug: enable immer map-set support

Jeremy Zheng 3 lat temu
rodzic
commit
3f41f5cede
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      dashboard/src/App.tsx

+ 2 - 0
dashboard/src/App.tsx

@@ -4,6 +4,7 @@ import { IntlProvider } from "react-intl";
 import { Provider } from "react-redux";
 import { pdfjs } from "react-pdf";
 import mermaid from "mermaid";
+import { enableMapSet } from "immer";
 
 import Router from "./Router";
 import store from "./store";
@@ -18,6 +19,7 @@ import "./App.css";
 
 pdfjs.GlobalWorkerOptions.workerSrc = `${API_HOST}/assets/pdf.worker.min.js`;
 mermaid.initialize({ startOnLoad: true });
+enableMapSet();
 
 onLoad();
 const lang = getLocale();