TypeError: Cannot read properties of null (reading 'get_label') at MultiSelect.svelte:75
See original GitHub issueIn rare cases the line $: selectedLabels = selected.map(get_label)
raises
TypeError: Cannot read properties of null (reading 'get_label')
at MultiSelect.svelte:75:33
Not sure exactly what is becoming null and what’s trying to access null.get_label but
$: selectedLabels = selected?.map(get_label) ?? []
seems to fix it.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
ERROR TypeError: Cannot read property 'isUpdate' of null ...
Steps to reproduce the issue. open a multi-select and select any item; while the drop-down is open, unselect the same item. Then Cannot...
Read more >Vue-MultiSelect: Can't seem to get property from an object ...
The problem is the v-model="issue.customer_last_name" on the multi-select itself. That's setting the selection of the multi-select component ...
Read more >Issue when deleting a line in a listview that contains ...
When it is deleted, we get the following error: "Cannot read property 'getGuid' of null TypeError: Cannot read property 'getGuid' of null".
Read more >Vue-Multiselect | Vue Select Library
By default searchable is set to true, thus using search doesn't require any prop. The internal search engine is based on the label...
Read more >Multi select
A business object list that populates the selection list when the Item lookup mode is Items From Config Option. ANY[]. Static list: Enter...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Janosh, this works perfectly now. Thanks SO much for your super quick attention and fix, you’re literally the best.
Have a great Sunday!
You are the absolute best. Cannot check right now but will tomorrow morning. Thanks anyways for your effort!