2022-12-01 changelog

Bug fix Miro Web SDK 2.0: fixed app metadata bug

What's changed

Bug fix Bug fixing

We addressed and solved a bug affecting app metadata.

When setting app metadata using the Web SDK setAppData method, if the original data being set inside the appData object was an empty array, the method would return an empty object.

getAppData would return an empty object ({}) for the corresponding empty array value ([]) originally set with setAppData.

Now the operation behaves as expected: setting an empty array with setAppData in the appData object returns an empty array.

Example

Before fixing the bug, you would set an app metadata appData object containing empty arrays:

appData = {  
  a: [], // Empty array  
  b: {  
    c: [] // Empty array
  }  
}

And it would return empty objects for the empty arrays:

appData = {  
  a: {}, // Empty object instead of empty array
  b: {  
    c: {} // Empty object instead of empty array  
  }  
}

After fixing the bug, it returns the originally set empty array inside the app metadata appData object:

appData = {  
  a: [], // Empty array
  b: {  
    c: [] // Empty array
  }  
}