Skip to content

Fixed null values for get-selected in datagrid#740

Open
wachterjohannes wants to merge 1 commit intomasterfrom
hotfix/null-returns-datagrid
Open

Fixed null values for get-selected in datagrid#740
wachterjohannes wants to merge 1 commit intomasterfrom
hotfix/null-returns-datagrid

Conversation

@wachterjohannes
Copy link
Member

If you have selected ids which are not in the list you get null values returned.

var item = this.getRecordById(id);
if (!!item) {
items.push(item);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we remove the item here somehow, if it doesn't exist? Because currently the categories are not removed in the smart content overlay, when they are deleted. And there is also no possibility to do so afterwards.

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.

2 participants