mirror of
https://github.com/penpot/penpot.git
synced 2026-03-15 06:56:06 +00:00
When clipboard items have types that don't match the allowed types list, the filtering results in an empty array. Calling getType with undefined throws a NotFoundError. This change adds a check for null/undefined types and filters them from the result. Signed-off-by: Andrey Antukh <niwi@niwi.nz>