Skip to content

Commit 6dc6793

Browse files
authored
Merge pull request #33 from Exabyte-io/feature/SOF-6341
fix: uncaught error when materialsSet is undefined
2 parents fd32eb3 + ad7c8d2 commit 6dc6793

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/context/mixins.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const MaterialsSetContextMixin = (superclass) =>
7272
return materials
7373
.concat()
7474
.sort((a, b) =>
75-
compareEntitiesInOrderedSetForSorting(a, b, this.materialsSet._id, false),
75+
compareEntitiesInOrderedSetForSorting(a, b, this.materialsSet?._id, false),
7676
);
7777
}
7878
};

0 commit comments

Comments
 (0)