Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: default show banner false (#10857)

Liu Ji2d1e1cfb4d88
diff --git a/frontend/src/components/BannersWrapper.vue b/frontend/src/components/BannersWrapper.vue
index 9f37d1e43e..0f4cfac70f 100644
--- a/frontend/src/components/BannersWrapper.vue
+++ b/frontend/src/components/BannersWrapper.vue
@@ -44,7 +44,8 @@ const { isExpired, isTrialing, currentPlan, existTrialLicense } =
storeToRefs(subscriptionStore);
const shouldShowDemoBanner = computed(() => {
- return actuatorStore.serverInfo?.demoName != "";
+ if (!actuatorStore.serverInfo) return false;
+ return actuatorStore.serverInfo.demoName !== "";
});
const shouldShowSubscriptionBanner = computed(() => {
diff --git a/frontend/src/store/modules/v1/actuator.ts b/frontend/src/store/modules/v1/actuator.ts
index 4be8e38f46..cc5ee71544 100644
--- a/frontend/src/store/modules/v1/actuator.ts
+++ b/frontend/src/store/modules/v1/actuator.ts
@@ -77,6 +77,7 @@ export const useActuatorV1Store = defineStore("actuator_v1", {
return state.serverInfo?.needAdminSetup || false;
},
needConfigureExternalUrl: (state) => {
+ if (!state.serverInfo) return false;
const url = state.serverInfo?.externalUrl ?? "";
return url === "" || url === EXTERNAL_URL_PLACEHOLDER;
},