From 09a317ed4627088e105fc857e37c4a3c902f116c Mon Sep 17 00:00:00 2001 From: Lina Ebeid Date: Wed, 13 Sep 2023 09:48:23 +0200 Subject: [PATCH] fix: update document validation (#788) * fix: document creation validation * fix: validation schema for add new doc to have a non-required value --- src/utils/item.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/utils/item.ts b/src/utils/item.ts index f56974de9..d43b75743 100644 --- a/src/utils/item.ts +++ b/src/utils/item.ts @@ -7,7 +7,6 @@ import { Item, ItemType, getAppExtra, - getDocumentExtra, getEmbeddedLinkExtra, } from '@graasp/sdk'; import { ImmutableCast, ItemRecord } from '@graasp/sdk/frontend'; @@ -119,11 +118,6 @@ export const isItemValid = (item: Partial): boolean => { hasValidTypeProperties = isUrlValid(url); break; } - case ItemType.DOCUMENT: { - const { content } = getDocumentExtra(item.extra) || {}; - hasValidTypeProperties = Boolean(content && content.length > 0); - break; - } default: break; }