From 9def78f8237e3823ec51d86f96023ea3270981aa Mon Sep 17 00:00:00 2001 From: Florian Hotze Date: Mon, 3 Jul 2023 14:39:21 +0200 Subject: [PATCH] Persistence page: Remove save checks as core checks data Depends on https://github.com/openhab/openhab-core/pull/3681. Signed-off-by: Florian Hotze --- .../pages/settings/persistence/persistence-edit.vue | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/bundles/org.openhab.ui/web/src/pages/settings/persistence/persistence-edit.vue b/bundles/org.openhab.ui/web/src/pages/settings/persistence/persistence-edit.vue index 72cb9f4c29..4a643e2db5 100644 --- a/bundles/org.openhab.ui/web/src/pages/settings/persistence/persistence-edit.vue +++ b/bundles/org.openhab.ui/web/src/pages/settings/persistence/persistence-edit.vue @@ -463,17 +463,6 @@ export default { this.filterTypes.forEach((ft) => { if (!this.persistence[ft.name]) this.persistence[ft.name] = [] }) - // Ensure relative is set on threshold filter, otherwise the save request fails with a 500 - this.persistence.thresholdFilters.forEach((f) => { - if (f.relative === undefined) f.relative = false - }) - // Ensure inverted is set for equals and include filter, otherwise the save request fails with a 500 - this.persistence.equalsFilters.forEach((f) => { - if (f.inverted === undefined) f.inverted = false - }) - this.persistence.includeFilters.forEach((f) => { - if (f.inverted === undefined) f.inverted = false - }) // Update the code tab if (this.persistenceYaml) this.toYaml()