Locations <-> CW integration is broken

Environment

Discourse Version: 3.2.0.Beta1 (a9cc379121)

Plugin Commit: 6.3.11 (00d23c4)

Steps to Reproduce

Add a field to a wizard with Location type.

When you visit the wizard and enter any of the location inputs (Street/ZIP/City/Country) it just keeps spinning with a console warning in browser

Example

https://forum.theputtyverse.com/w/puttypeep-welcome/steps/step_4

The link is on a private forum but the issue is easily reproducible.

Logs

To prevent errors in tests, add a pluginId key to your modifyClass call. This will ensure the modification is only applied once. plugin-api.js:21

step_4
Uncaught TypeError: this.args.searchError is not a function
locationSearch location-form.js:164
y rsvp.js:435
v rsvp.js:421
f rsvp.js:370
invoke queue.ts:203
flush queue.ts:98
flush deferred-action-queues.ts:75
_end index.ts:616
end index.ts:298
_run index.ts:667
run index.ts:339
d Ember
success ajax.js:105
jQuery 6
b ajax.js:154
O rsvp.js:460
O rsvp.js:916
h ajax.js:167
a location-utilities.js:10
invoke queue.ts:203
flush queue.ts:98
flush deferred-action-queues.ts:75
_end index.ts:616
end index.ts:298
_runExpiredTimers index.ts:739
setTimeout handler*setTimeout platform.ts:50
_installTimerTimeout index.ts:783
_reinstallTimerTimeout index.ts:769
_later index.ts:695
debounce index.ts:520
E Ember
geoLocationSearch location-utilities.js:36
O rsvp.js:460
O rsvp.js:916
geoLocationSearch location-utilities.js:35
locationSearch location-form.js:150
_run index.ts:665
_join index.ts:640
join index.ts:362
Ember 5
location-form.js:164

1 Like

Working on this whilst also trying to perform a small refactor of Locations …

2 Likes

Is this a duplicate of this?

No, but they’re related.

This is now fixed:

This PR included a transition to the new Modal Components.

2 Likes