sanity-plugin-workflow 1.0.0-beta.10 → 1.0.0-beta.11

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/lib/index.js CHANGED
@@ -203,6 +203,7 @@ function WorkflowProvider(props) {
203
203
  });
204
204
  }
205
205
  function AssignWorkflow(props) {
206
+ var _a;
206
207
  const {
207
208
  id
208
209
  } = props;
@@ -234,7 +235,7 @@ function AssignWorkflow(props) {
234
235
  },
235
236
  content: /* @__PURE__ */jsxRuntime.jsx(UserAssignment, {
236
237
  userList,
237
- assignees: metadata && metadata.assignees.length > 0 ? metadata.assignees : [],
238
+ assignees: ((_a = metadata == null ? void 0 : metadata.assignees) == null ? void 0 : _a.length) > 0 ? metadata.assignees : [],
238
239
  documentId: id
239
240
  })
240
241
  },