Skip to content

Commit ab3f885

Browse files
committed
update links-to-many-component. was using arrayField name
1 parent c04ce8e commit ab3f885

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: packages/base/links-to-many-component.gts

+4-4
Original file line numberDiff line numberDiff line change
@@ -337,13 +337,13 @@ class LinksToManyCompactEditor extends GlimmerComponent<LinksToManyCompactEditor
337337
function getEditorChildFormat(
338338
format: Format | undefined,
339339
defaultFormat: Format,
340-
arrayField: Box<FieldDef[]>,
340+
model: Box<FieldDef[]>,
341341
) {
342-
let model = arrayField.containingBox;
342+
let containingBox = model.containingBox;
343343
if (
344344
(format ?? defaultFormat) === 'edit' &&
345-
'isFieldDef' in model.value.constructor &&
346-
model.value.constructor.isFieldDef
345+
'isFieldDef' in containingBox.value.constructor &&
346+
containingBox.value.constructor.isFieldDef
347347
) {
348348
return 'atom';
349349
}

0 commit comments

Comments
 (0)