Commit c7fd59e4 authored by Phil Hughes's avatar Phil Hughes

Fixes a re-render error within widget extensions

This was caused by the original object getting overwritten by
Vues reactivity.
parent 0ec328ab
......@@ -10,20 +10,23 @@ export default {
render(h) {
if (extensions.length === 0) return null;
return h(
'div',
{},
extensions.map((extension) =>
h(extension, {
props: extension.props.reduce(
(acc, key) => ({
...acc,
[key]: this.mr[key],
}),
{},
),
}),
return h('div', {}, [
...extensions.map((extension) =>
h(
{ ...extension },
{
props: {
...extension.props.reduce(
(acc, key) => ({
...acc,
[key]: this.mr[key],
}),
{},
),
},
},
),
),
);
]);
},
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment