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

Handle case where an error occurs of any type when attempting to get page layout for missing objects. #61

Merged
merged 3 commits into from
Feb 20, 2024

Conversation

dbreese
Copy link
Collaborator

@dbreese dbreese commented Feb 20, 2024

This way, user can at least see an issue, otherwise it was just silently failing without any notice.
@dbreese dbreese requested a review from a team as a code owner February 20, 2024 19:22
});
}

static async checkForExistingQuickActions(): Promise<SObjectQuickActionStatus> {
return new Promise<SObjectQuickActionStatus>(async (resolve) => {
const results: SObjectQuickActionStatus = { sobjects: {} };
return new Promise<SObjectQuickActionStatus>(
Copy link
Collaborator

Choose a reason for hiding this comment

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

It looks like only the formatting changed. Was it by running prettier?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This file changed mostly because of prettier, but also because the lines grew in length some because I added the reject block to the Promise.

Copy link
Collaborator

@sfdctaka sfdctaka left a comment

Choose a reason for hiding this comment

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

LGTM!

@dbreese dbreese merged commit bc1c271 into salesforce:main Feb 20, 2024
9 checks passed
@dbreese dbreese deleted the handle-sobject-dne branch February 20, 2024 20:53
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.

None yet

3 participants