1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

fix: allow editors to create flags again (#7685)

This change fixes a bug where editors were suddenly unable to create
flags. The issue is that the new project creation dialog used a
permission button, but didn't supply the project ID.
This commit is contained in:
Thomas Heartman 2024-07-29 11:24:32 +02:00 committed by GitHub
parent f24f8a896c
commit 80cff0a5fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,6 +60,7 @@ const FlagCreationButton: FC = () => {
onClick={() => setOpenCreateDialog(true)}
maxWidth='960px'
Icon={Add}
projectId={projectId}
disabled={loading}
permission={CREATE_FEATURE}
data-testid='NAVIGATE_TO_CREATE_FEATURE'