Closed paulsonnentag closed 6 years ago
I found a bug when requesting multiple canvases like this:
var canvas2 = await paper.get('canvas'); var canvas = await paper.get('canvas', { number: 42 }); // some other paper number
I get the following errror
The cause is that the canvases have duplicate keys which leads to bugy behaviour.
Interestingly it works when requesting the canvases the other way around:
var canvas = await paper.get('canvas', { number: 42 }); // some other paper number var canvas2 = await paper.get('canvas');
I've fixed the issue by generating unique keys.
I found a bug when requesting multiple canvases like this:
I get the following errror
The cause is that the canvases have duplicate keys which leads to bugy behaviour.
Interestingly it works when requesting the canvases the other way around:
I've fixed the issue by generating unique keys.