Skip to content

Commit 6277261

Browse files
committed
Fix error due to [null] returned from API
Signed-off-by: Florian Hotze <dev@florianhotze.com>
1 parent f4e786d commit 6277261

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

bundles/org.openhab.ui/web/src/components/persistence/item-persistence-details.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ const loadService = async (service: api.PersistenceService): Promise<Persistence
122122
}
123123
}
124124
125+
// TODO: Currently, the API returns null entries if the service doesn't know its items
126+
itemsPersisted = itemsPersisted.filter((item) => item)
127+
125128
return {
126129
...service,
127130
configs: serviceConfig?.configs ?? [],

0 commit comments

Comments
 (0)