Skip to content

Commit 81d072c

Browse files
committed
latest changes
1 parent 69b117f commit 81d072c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/packages/lowcoder/src/pages/editor/AppEditor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ import { fetchFolderElements } from "redux/reduxActions/folderActions";
2626
import { registryDataSourcePlugin } from "constants/queryConstants";
2727
import { DatasourceApi } from "api/datasourceApi";
2828
import { useRootCompInstance } from "./useRootCompInstance";
29-
import ErrorBoundary from "antd/es/alert/ErrorBoundary";
3029
import EditorSkeletonView from "./editorSkeletonView";
30+
import {ErrorBoundary, FallbackProps} from 'react-error-boundary';
3131

3232
const AppSnapshot = lazy(() => {
3333
return import("pages/editor/appSnapshot")
@@ -135,7 +135,7 @@ export default function AppEditor() {
135135
}, [viewMode, applicationId, dispatch]);
136136

137137
return (
138-
<ErrorBoundary>
138+
<ErrorBoundary fallback={<p>⚠️Something went wrong</p>}>
139139
{showAppSnapshot ? (
140140
<Suspense fallback={<EditorSkeletonView />}>
141141
<AppSnapshot

0 commit comments

Comments
 (0)