Skip to content

Commit

Permalink
feat: improve reset color logic
Browse files Browse the repository at this point in the history
  • Loading branch information
agviegas committed May 11, 2024
1 parent 475f209 commit f6b4bde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/fragments/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@thatopen/fragments",
"description": "Fragments utilities.",
"version": "2.0.0-alpha.4",
"version": "2.0.0-alpha.5",
"author": "That Open Company",
"contributors": [
"Antonio Gonzalez Viegas (https://github.com/agviegas)",
Expand Down
3 changes: 1 addition & 2 deletions packages/fragments/src/fragment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,8 @@ export class Fragment {
}

const originals = this._originalColors.get(itemID);

if (!originals) {
throw new Error("Original colors not found!");
continue;
}

for (const instance of new Set(instances)) {
Expand Down

0 comments on commit f6b4bde

Please sign in to comment.