This commit is contained in:
Niels Lyngsø
2024-10-03 20:44:33 +02:00
parent a8659208f4
commit 2baf64597b

View File

@@ -51,6 +51,7 @@ export class UmbDocumentScheduleModalElement extends UmbModalBaseElement<
}
// Only display variants that are relevant to pick from, i.e. variants that are draft or published with pending changes:
// TODO:[NL] I would say we should change this, the act of scheduling should be equivalent to save & publishing. Resulting in content begin saved as part of carrying out the action. (But this requires a update in the workspace.)
this._options =
this.data?.options.filter(
(option) => option.variant && option.variant.state !== UmbDocumentVariantState.NOT_CREATED,