Hello, I am trying to programmatically populate a board with predefined shape widgets.
N.B i can successfully create a frame widget, but not its children and attempting to separately render child widgets hasn’t worked for me either.
Please see stack trace below, I suspect that the error is originating from the Miro Web Plugin SDK.
Looking through the documentation, I can’t see a requirement for a ‘name’ property for a widget.. tested and adding a name property to the json object results in the same error.
Please, Let me know
Regards, R
TypeError: Cannot read property 'name' of undefined
at Function.t.getName (Board.4b1e51e782d99f6d574d.js:2)
at t.setFontSizeOfStyle (Board.4b1e51e782d99f6d574d.js:2)
at n.setWidgetData (Board.4b1e51e782d99f6d574d.js:2)
at n.setJsonData (Board.4b1e51e782d99f6d574d.js:2)
at n.setData (Board.4b1e51e782d99f6d574d.js:2)
at new n (Board.4b1e51e782d99f6d574d.js:2)
at create (Board.4b1e51e782d99f6d574d.js:2)
at Object.e.create (Board.4b1e51e782d99f6d574d.js:2)
at t.create (Board.4b1e51e782d99f6d574d.js:2)
at e.createFromData (Board.4b1e51e782d99f6d574d.js:2)
at Board.4b1e51e782d99f6d574d.js:2
at e.applyChanges (Board.4b1e51e782d99f6d574d.js:2)
at e.o.value 6as applyChanges] (application-core.0a3dbd1a495be8e64cd5.js:2)
at e.n.value eas createFromData] (Board.4b1e51e782d99f6d574d.js:2)
at e.create (BoardSdk.e87d1ecfb7458dfe0744.js:1)
at kt (BoardSdk.e87d1ecfb7458dfe0744.js:1)
at BoardSdk.e87d1ecfb7458dfe0744.js:1
at Array.map (<anonymous>)
at e.<anonymous> (BoardSdk.e87d1ecfb7458dfe0744.js:1)
at (index):216
at Object.next ((index):216)
at (index):216
at new Promise (<anonymous>)
at c ((index):216)
at e.create (BoardSdk.e87d1ecfb7458dfe0744.js:1)
at e.r.value (BoardSdk.e87d1ecfb7458dfe0744.js:1)
at e.o.value las create] (BoardSdk.e87d1ecfb7458dfe0744.js:1)
at t.processCommand (BoardSdk.e87d1ecfb7458dfe0744.js:1)
at e.processCommandFromIFrame (BoardSdk.e87d1ecfb7458dfe0744.js:1)
at T (BoardSdk.e87d1ecfb7458dfe0744.js:1)