Skip to content

Commit

Permalink
Merge pull request #1870 from googlefonts/issue-1869-multi-window-edit
Browse files Browse the repository at this point in the history
Fix casting of object properties
  • Loading branch information
justvanrossum authored Dec 18, 2024
2 parents 0c41855 + 5981a98 commit f08c640
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/fontra/client/core/changes.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,7 @@ export function applyChange(subject, change, subjectClassDef) {
) {
// Ensure we cast list/dict with typed elements
const classDef = subjectClassDef?.getSubType(args[0]);
if (
classDef &&
(classDef.className == "list" || classDef.className == "dict") &&
!atomicTypes.has(classDef.subType)
) {
if (classDef && !atomicTypes.has(classDef.subType)) {
itemCast = classDef.cast.bind(classDef);
}
}
Expand Down

0 comments on commit f08c640

Please sign in to comment.