Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Conversation

@robester0403
Copy link
Contributor

Ticket

PLAT-14359
Related tickets:
Related PRs:

Type of PR

  • Bugfix
  • New feature
  • Minor changes

Changes introduced

image

Test and review

Describe how a reviewer should test your PR

@robester0403 robester0403 reopened this Apr 4, 2024
@robester0403 robester0403 changed the base branch from main to develop April 4, 2024 17:05
) => {
const patchBody = {};

section("To ensure the entire string is saved, please use double quotes around the string value.");
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we could use some validation here to ensure that at least one value is being set. Like

if(Object.keys(patchBody).length === 0)

Then we can print this warning inside there if they didnt provide any values to set.

valid(`Module details updated for ${id}.`);
} else {
patchSpinner.stop();
invalid(`Unable to update module details for ${id}. Please try again.`);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggest checking for status === 404 and printing a nicer message.

@robester0403 robester0403 merged commit 8459f1e into develop Apr 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants