mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
improvement: improve role not found error display
This commit is contained in:
@@ -150,7 +150,9 @@ export const DuplicateRoleModal = ({ isOpen, onOpenChange, roleSlug }: Props) =>
|
||||
) : role ? (
|
||||
<Content role={role!} onClose={() => onOpenChange(false)} />
|
||||
) : (
|
||||
<span>Error: could not find role with slug "{roleSlug}"</span>
|
||||
<p className="w-full text-center text-red">
|
||||
Error: could not find role with slug "{roleSlug}"
|
||||
</p>
|
||||
)}
|
||||
</ModalContent>
|
||||
</Modal>
|
||||
|
||||
Reference in New Issue
Block a user