Commit 8e63be9b authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'ph/fixWidgetExtensionRerenderBug' into 'master'

Fixes a re-render error within widget extensions

See merge request gitlab-org/gitlab!71099
parents 511876d1 c7fd59e4
......@@ -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