Fix value mapped to NULL not shown in list label item (#2626)

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>

See description in
https://github.com/openhab/openhab-core/pull/4203#issuecomment-2095792756

If a mapping is used to map a value to NULL, it is currently not shown
in an oh_label_item.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
pull/2629/head
Mark Herwege 2024-06-25 10:26:30 +02:00 committed by GitHub
parent 0d8c21a727
commit 2a830a6f09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
<template>
<oh-list-item :context="context">
<div slot="after" v-if="(config.after === undefined) && (context.store[config.item].state !== 'NULL')">
<div slot="after" v-if="(config.after === undefined) && (context.store[config.item].displayState || (context.store[config.item].state !== 'NULL'))">
{{ context.store[config.item].displayState || context.store[config.item].state }}
</div>
</oh-list-item>