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

fix: crash when options.model.edit is not defined #410

Merged
merged 2 commits into from
Sep 10, 2024

Conversation

yaKashif
Copy link
Contributor

@yaKashif yaKashif commented Sep 10, 2024

Title

Fix crash when edit options are not defined

Type of Change

  • New feature
  • Bug fix
  • Documentation update
  • Example update
  • Refactoring
  • Hotfix
  • Security patch
  • UI/UX improvement

Issue

[Linked issues]

Description

If model object doesn't define edit: {} it is crashing admin panel. It originated in #406

Testing

yarn test passes.

Impact

Nothing.

Additional Information

Nothing.

Copy link

changeset-bot bot commented Sep 10, 2024

🦋 Changeset detected

Latest commit: 7a10478

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@premieroctet/next-admin Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@foyarash
Copy link
Collaborator

Thank you @yaKashif, can you please run yarn changeset in the root folder to generate a changeset ?

@foyarash foyarash merged commit 8c9405f into premieroctet:main Sep 10, 2024
2 checks passed
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