Skip to content

Commit

Permalink
oh-context: Fix rendering failure when not in edit mode (openhab#2662)
Browse files Browse the repository at this point in the history
When not being in edit mode, oh-context did not render at all. Instead,
an error was thrown:

```
[Vue warn]: Cannot set reactive property on undefined, null, or primitive value: undefined

found in

---> <OhContext> at src/components/widgets/system/oh-context.vue
```

Signed-off-by: Florian Hotze <[email protected]>
  • Loading branch information
florian-h05 authored Jul 11, 2024
1 parent 43abf2f commit 8a50e35
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export default {
}
this.$set(ctx, 'const', ctxConstants)
if (typeof ctx.ctxVars !== 'object') this.$set(ctx, 'ctxVars', {})
this.$set(ctx.ctxVars, this.varScope, this.ctxVars)
return ctx
Expand Down

0 comments on commit 8a50e35

Please sign in to comment.