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

#1 Load all tenant options #2

Merged
merged 2 commits into from
Dec 18, 2023
Merged

#1 Load all tenant options #2

merged 2 commits into from
Dec 18, 2023

Conversation

CGuether
Copy link
Collaborator

Add and support pagination when loading all tenant options

} catch (error) {
console.error(error);

return undefined;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Returning undefined while not handling that case in the reload method of the tenant-option.component.ts will lead to an NPE when trying to call find on undefined. I would rather not want to catch it and let it bubble up the promise chain.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

changed it to return an empty array and create an alert if an error occurred while loading the tenant options

@CGuether CGuether merged commit a65ad45 into main Dec 18, 2023
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