Skip to content

FIX: Stop the admin wizard editor crashing on multiple mapper inputs - #320

Merged
angusmcleod merged 1 commit into
mainfrom
fix/admin-wizard-editor
Sep 8, 2026
Merged

angusmcleod merged 1 commit into
mainfrom
fix/admin-wizard-editor

Conversation

@angusmcleod

@angusmcleod angusmcleod commented Sep 8, 2026

Copy link
Copy Markdown
Member

WizardMapper renders the connector between its inputs without passing connectors. The GJS migration replaced the null safe gt("connectors.length", 1) macro with this.connectors.length > 1, so any mapper with more than one input threw a render error, which took the whole admin wizard editor down with it.

Reported in meta #991.

@angusmcleod
angusmcleod force-pushed the fix/admin-wizard-editor branch 2 times, most recently from 7a32f48 to 114094e Compare September 8, 2026 08:50
WizardMapper renders the connector between its inputs without passing
connectors, as that connector is a label rather than a combo box. The
GJS migration replaced the null safe gt("connectors.length", 1) macro in
WizardMapperConnector with this.connectors.length > 1, so rendering a
mapper with more than one input threw:

  TypeError: Cannot read properties of undefined (reading 'length')

That is an unrecoverable Ember render error, so it took the whole admin
wizard editor down with it: only the first condition on a step rendered,
the add buttons for conditions, required data and permitted params did
nothing, the form went blank after saving, and switching steps no longer
updated the fields shown.

Meta: https://meta.discourse.org/t/custom-wizard-plugin/73345/991
@angusmcleod
angusmcleod force-pushed the fix/admin-wizard-editor branch from 114094e to 9ff0bf5 Compare September 8, 2026 08:50
@angusmcleod
angusmcleod merged commit b5070ff into main Sep 8, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant