Skip to content

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

fix: only show feature dialog when host or port has value (#2918)

boojackc3eaed1e5988
diff --git a/frontend/src/components/InstanceForm.vue b/frontend/src/components/InstanceForm.vue
index 13dac0d033..443033f45e 100644
--- a/frontend/src/components/InstanceForm.vue
+++ b/frontend/src/components/InstanceForm.vue
@@ -598,7 +598,7 @@ const updateInstanceDataSource = () => {
};
if (!hasFeature("bb.feature.read-replica-connection")) {
- if (newValue.hostOverride !== "" || newValue.portOverride !== "") {
+ if (newValue.hostOverride || newValue.portOverride) {
currentDataSource.value.hostOverride = "";
currentDataSource.value.portOverride = "";
state.showFeatureModal = true;