diff --git a/changelog/12819.txt b/changelog/12819.txt
new file mode 100644
index 000000000..80e772b48
--- /dev/null
+++ b/changelog/12819.txt
@@ -0,0 +1,3 @@
+```release-note:improvement
+ui: Removes empty rows from DB config views
+```
diff --git a/ui/app/helpers/is-empty-value.js b/ui/app/helpers/is-empty-value.js
index 2c43bdd99..6f3de8abd 100644
--- a/ui/app/helpers/is-empty-value.js
+++ b/ui/app/helpers/is-empty-value.js
@@ -1,6 +1,9 @@
import { helper } from '@ember/component/helper';
-export default helper(function isEmptyValue([value] /*, hash*/) {
+export default helper(function isEmptyValue([value], { hasDefault = false }) {
+ if (hasDefault) {
+ value = hasDefault;
+ }
if (typeof value === 'object' && value !== null) {
return Object.keys(value).length === 0;
}
diff --git a/ui/app/templates/components/database-connection.hbs b/ui/app/templates/components/database-connection.hbs
index 19aee3804..69b34a7c3 100644
--- a/ui/app/templates/components/database-connection.hbs
+++ b/ui/app/templates/components/database-connection.hbs
@@ -310,14 +310,14 @@
{{#let attr.options.defaultShown as |defaultDisplay|}}
{{#if (eq attr.type "object")}}
{{else if (eq attr.type "array")}}
{{else}}