@sanity/assist 1.2.8 → 1.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4727,7 +4727,7 @@ const assist = sanity.definePlugin(config => {
4727
4727
  schemaType
4728
4728
  } = _ref17;
4729
4729
  const docSchema = schema.get(schemaType);
4730
- if (isSchemaAssistEnabled(docSchema)) {
4730
+ if (docSchema && sanity.isObjectSchemaType(docSchema) && isSchemaAssistEnabled(docSchema)) {
4731
4731
  return [...prev, createAssistDocumentPresence(documentId, docSchema)];
4732
4732
  }
4733
4733
  return prev;