note on no options scenario

This commit is contained in:
Niels Lyngsø
2024-02-27 11:04:42 +01:00
parent ab323a24e6
commit c8ae36bfbc

View File

@@ -26,6 +26,10 @@ export class UmbPickDocumentVariantModalController extends UmbBaseController {
options: args.options,
};
if (modalData.options.length === 0) {
// TODO: What do to when there is no options?
}
if (selected.length === 0) {
// TODO: Make it possible to use consume context without callback. [NL]
const ctrl = this.consumeContext(UMB_APP_LANGUAGE_CONTEXT, (appLanguageContext) => {});