Skip to content
This repository was archived by the owner on Apr 19, 2024. It is now read-only.

Commit a38478a

Browse files
committed
hide MigrationManager on demo sites
1 parent e1fb549 commit a38478a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/App.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ import { mapTheme } from "utils/map-theme"
4747
import { netdataCallback, updateLocaleFunctions } from "./main"
4848

4949
import { MigrationManager } from "@/src/domains/dashboard/components/migration-manager"
50+
import { isDemo } from "./utils/is-demo"
5051

5152
// support legacy code
5253
window.Ps = Ps
@@ -122,7 +123,7 @@ const App: React.FC = () => {
122123
)}
123124
{chartsMetadata && cloudBaseURL && hasFetchedInfo && haveDOMReadyForParsing && (
124125
<Layout printMode={isPrintMode}>
125-
<MigrationManager />
126+
{isDemo ? null : <MigrationManager />}
126127
{hasFetchDependencies && (
127128
<>
128129
<Portals key={refreshHelper} />

0 commit comments

Comments
 (0)