diff --git a/package.json b/package.json index f2846b27..74716c95 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@nordcloud/gnui", "description": "Nordcloud Design System - a collection of reusable React components used in Nordcloud's SaaS products", - "version": "8.13.2", + "version": "8.13.3", "license": "MIT", "repository": { "type": "git", diff --git a/src/components/modal/Modal.tsx b/src/components/modal/Modal.tsx index 2af06b3e..862fa915 100644 --- a/src/components/modal/Modal.tsx +++ b/src/components/modal/Modal.tsx @@ -53,10 +53,10 @@ export function Modal({ > {children} - {actions?.length > 0 && ( + {actions && ( {actions - .sort((a, b) => a.order || 0 - b.order || 0) + ?.sort((a, b) => a.order || 0 - b.order || 0) .map((action, index) => ( void; - actions: ModalAction[]; + actions?: ModalAction[]; contentLabel: string; children: React.ReactNode; };