Skip to content
Snippets Groups Projects
Commit 2ae3cb93 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Handle missing 'attributes' in topic json

Default to an empty list
parent 7378685e
No related branches found
No related tags found
No related merge requests found
...@@ -601,7 +601,7 @@ class VPUApp extends LitElement { ...@@ -601,7 +601,7 @@ class VPUApp extends LitElement {
const elm = document.createElement(activity.element); const elm = document.createElement(activity.element);
for(const key of this.topic.attributes) { for(const key of this.topic.attributes || []) {
let value = sessionStorage.getItem('vpu-attr-' + key); let value = sessionStorage.getItem('vpu-attr-' + key);
if (value !== null) { if (value !== null) {
elm.setAttribute(key, value); elm.setAttribute(key, value);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment