We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d0aea57 + 13383f3 commit c374d5eCopy full SHA for c374d5e
frontend/src/components/App/Layout.tsx
@@ -145,12 +145,18 @@ export default function Layout({}: LayoutProps) {
145
dispatch(setConfig(configToStore));
146
}
147
148
+
149
+ /**
150
+ * Fetches the stateless cluster config from the indexDB and then sends the backend to parse it
151
+ * only if the stateless cluster config is enabled in the backend.
152
+ */
153
+ if (config?.isDynamicClusterEnabled) {
154
+ fetchStatelessClusterKubeConfigs(dispatch);
155
+ }
156
})
157
.catch(err => {
158
console.error('Error getting config:', err);
159
});
-
- fetchStatelessClusterKubeConfigs(dispatch);
160
};
161
162
return (
0 commit comments