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.esm.js +2 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/actions/AssignWorkflow.tsx +1 -3
package/lib/index.esm.js
CHANGED
|
@@ -190,6 +190,7 @@ function WorkflowProvider(props) {
|
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
192
|
function AssignWorkflow(props) {
|
|
193
|
+
var _a;
|
|
193
194
|
const {
|
|
194
195
|
id
|
|
195
196
|
} = props;
|
|
@@ -221,7 +222,7 @@ function AssignWorkflow(props) {
|
|
|
221
222
|
},
|
|
222
223
|
content: /* @__PURE__ */jsx(UserAssignment, {
|
|
223
224
|
userList,
|
|
224
|
-
assignees: metadata
|
|
225
|
+
assignees: ((_a = metadata == null ? void 0 : metadata.assignees) == null ? void 0 : _a.length) > 0 ? metadata.assignees : [],
|
|
225
226
|
documentId: id
|
|
226
227
|
})
|
|
227
228
|
},
|