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
parent
0d8c21a727
commit
2a830a6f09
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue