Skip to content

Commit 4776292

Browse files
aminyaUziTech
andcommitted
fix: getDecorations: return an array instead of an iterable
Co-Authored-By: Tony Brix <[email protected]>
1 parent 0fcb255 commit 4776292

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/decoration-management.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export default class DecorationManagement {
8181
* @return {Array<Decoration>} all the decorations in this `Minimap`
8282
*/
8383
getDecorations () {
84-
return this.decorationsById.values()
84+
return [...this.decorationsById.values()]
8585
}
8686

8787
/**

0 commit comments

Comments
 (0)