Commit a516ff81 by Johannes Schill

Add prop key to panelPropsString to avoid a bug when changing another value and…

Add prop key to panelPropsString to avoid a bug when changing another value and the render doesnt trigger
parent 827ffacc
...@@ -22,7 +22,7 @@ export class GeneralTabCtrl { ...@@ -22,7 +22,7 @@ export class GeneralTabCtrl {
const { panel } = scope.ctrl; const { panel } = scope.ctrl;
const panelPropsToTrack = ['title', 'description', 'transparent', 'repeat', 'repeatDirection', 'minSpan']; const panelPropsToTrack = ['title', 'description', 'transparent', 'repeat', 'repeatDirection', 'minSpan'];
const panelPropsString = panelPropsToTrack const panelPropsString = panelPropsToTrack
.map(prop => (panel[prop] && panel[prop].toString ? panel[prop].toString() : panel[prop])) .map(prop => prop + '=' + (panel[prop] && panel[prop].toString ? panel[prop].toString() : panel[prop]))
.join(); .join();
const panelLinks = panel.links; const panelLinks = panel.links;
const panelLinksString = panelLinks.map(obj2string).join(); const panelLinksString = panelLinks.map(obj2string).join();
......
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