Hi there,
I’ve been trying to add metadata to my images, however it seems like it’s not supported/updated for some reason.
Ways to reproduce:
1. Empty board - add a single image to the board.
2. Console:
const [item] = await miro.board.get();
await item.setMetadata('test', 'data')
await item.getMetadata()
You will see the meta data present on the single item that is on the board - an image.
3. Then close the board and re-open it.
4. Console:
const [item] = await miro.board.get();
await item.getMetadata()
5. It is now empty, no data is saved on the item :(
If I try the exact same thing with a Card, it works just fine.
If I try the exact same thing with a Sticky Note - it also doesn’t work.
I’ve also tried to do item.sync() to see if that would lead anywhere, but it also doesn’t.
It seems like it’s not saving across sessions? If there’s something I’m missing then this is not documented very well in the SDK docs.