@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.esm.js CHANGED
@@ -4714,7 +4714,7 @@ const assist = definePlugin(config => {
4714
4714
  schemaType
4715
4715
  } = _ref17;
4716
4716
  const docSchema = schema.get(schemaType);
4717
- if (isSchemaAssistEnabled(docSchema)) {
4717
+ if (docSchema && isObjectSchemaType(docSchema) && isSchemaAssistEnabled(docSchema)) {
4718
4718
  return [...prev, createAssistDocumentPresence(documentId, docSchema)];
4719
4719
  }
4720
4720
  return prev;