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; }