optional chain so that the getter won't throw

This commit is contained in:
Tropical 2022-08-31 15:43:12 -05:00
parent 574b4ea769
commit e5c7a0b3ba
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ export default class Modals {
static get ModalStack() {return WebpackModules.getByProps("push", "update", "pop", "popWithKey");}
static get ModalComponents() {return WebpackModules.getByProps("ModalRoot");}
static get ModalClasses() {return WebpackModules.getByProps("modal", "content");}
static get MaskedLink() {return WebpackModules.getModule(m => m?.default?.type?.toString()?.includes('default.MASKED_LINK')).default;}
static get MaskedLink() {return WebpackModules.getModule(m => m?.default?.type?.toString()?.includes('default.MASKED_LINK'))?.default;}
static get ImageModal() {return WebpackModules.getByDisplayName("ImageModal");}
static get AlertModal() {return WebpackModules.getByPrototypes("handleCancel", "handleSubmit", "handleMinorConfirm");}
static get FlexElements() {return WebpackModules.getByProps("Child", "Align");}