Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button to add new Countries to Zones is not working #3212

Closed
thochoertler opened this issue Nov 15, 2024 · 2 comments
Closed

Button to add new Countries to Zones is not working #3212

thochoertler opened this issue Nov 15, 2024 · 2 comments
Labels
type: bug 🐛 Something isn't working
Milestone

Comments

@thochoertler
Copy link

Describe the bug
When clicking on the "+ Add Countries to ..." nothing happens and a lot of errors are appearing in the browser console.

Error message in Chrome:

query-result.ts:209 ERROR TypeError: Cannot convert undefined or null to object
    at Function.entries (<anonymous>)
    at get sortedColumns (data-table2.component.ts:171:42)
    at get visibleSortedColumns (data-table2.component.ts:165:21)
    at template (data-table2.component.html:22:40)

Error message in Safari:

[Error] ERROR – TypeError: Object.entries requires that input parameter not be null or undefined — data-table2.component.ts:171
TypeError: Object.entries requires that input parameter not be null or undefined — data-table2.component.ts:171
	handleError (main.a81808e064adad37.js:3246:525988)
	run (polyfills.ca6223cd90c925dc.js:1:20893)
	_tick (main.a81808e064adad37.js:3246:667867)
	tick (main.a81808e064adad37.js:3246:667699)
	(anonymous function) (main.a81808e064adad37.js:3246:670380)
	onInvoke (main.a81808e064adad37.js:3246:562356)
	run (polyfills.ca6223cd90c925dc.js:1:20893)
	next (main.a81808e064adad37.js:3246:670350)
	next (main.a81808e064adad37.js:3246:187761)
	_next (main.a81808e064adad37.js:3246:187431)
	next (main.a81808e064adad37.js:3246:187118)
	(anonymous function) (main.a81808e064adad37.js:3246:185077)
	b (main.a81808e064adad37.js:3246:213750)
	next (main.a81808e064adad37.js:3246:184912)
	emit (main.a81808e064adad37.js:3246:527480)
	Fp (main.a81808e064adad37.js:3246:563350)
	j3 (main.a81808e064adad37.js:3246:563793)
	onInvokeTask (main.a81808e064adad37.js:3246:562297)
	runTask (polyfills.ca6223cd90c925dc.js:1:21543)
	invokeTask (polyfills.ca6223cd90c925dc.js:1:27324)
Screenshot 2024-11-15 at 14 44 29

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Settings > Zones'
  2. Click on 'View Members' on one item in the table
  3. Click on '+ Add Countries to ...'
  4. See error

Expected behavior
After clicking the button it should be possible to select and add countries to one zone.

Environment (please complete the following information):

  • @vendure/core version: 3.0.6
  • Nodejs version 20.18.0
  • Database (mysql/postgres etc): postgres
@thochoertler thochoertler added the type: bug 🐛 Something isn't working label Nov 15, 2024
@michaelbromley michaelbromley moved this to 📅 Planned in Vendure OS Roadmap Nov 20, 2024
@michaelbromley michaelbromley added this to the v3.0.7 milestone Nov 20, 2024
@ashishkpaul
Copy link

Not resolved in v3.07, still having the same issue

@michaelbromley
Copy link
Member

Thanks for the notice. I'm publishing a new patch which fixes this.

@michaelbromley michaelbromley moved this from 📅 Planned to 🚀 Shipped in Vendure OS Roadmap Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Something isn't working
Projects
Status: 🚀 Shipped
Development

No branches or pull requests

3 participants