File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
client/packages/lowcoder/src/pages/editor Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ import { fetchFolderElements } from "redux/reduxActions/folderActions";
26
26
import { registryDataSourcePlugin } from "constants/queryConstants" ;
27
27
import { DatasourceApi } from "api/datasourceApi" ;
28
28
import { useRootCompInstance } from "./useRootCompInstance" ;
29
- import ErrorBoundary from "antd/es/alert/ErrorBoundary" ;
30
29
import EditorSkeletonView from "./editorSkeletonView" ;
30
+ import { ErrorBoundary , FallbackProps } from 'react-error-boundary' ;
31
31
32
32
const AppSnapshot = lazy ( ( ) => {
33
33
return import ( "pages/editor/appSnapshot" )
@@ -135,7 +135,7 @@ export default function AppEditor() {
135
135
} , [ viewMode , applicationId , dispatch ] ) ;
136
136
137
137
return (
138
- < ErrorBoundary >
138
+ < ErrorBoundary fallback = { < p > ⚠️Something went wrong </ p > } >
139
139
{ showAppSnapshot ? (
140
140
< Suspense fallback = { < EditorSkeletonView /> } >
141
141
< AppSnapshot
You can’t perform that action at this time.
0 commit comments