bugfix: ColorAllocator not copying fallbackColors causing it to be empty, causing npes

This commit is contained in:
evanpelle
2025-06-10 14:43:37 -07:00
parent cd799b514c
commit f0c37ec9c5
+1 -1
View File
@@ -349,7 +349,7 @@ export class ColorAllocator {
return this.assigned.get(id)!;
}
if (this.availableColors.length === 0) {
this.availableColors = this.fallbackColors;
this.availableColors = [...this.fallbackColors];
}
const index = 0;
const color = this.availableColors.splice(index, 1)[0];