Prevent closing modal when templates are still loading
[MAILPOET-6049]
This commit is contained in:
committed by
Aschepikov
parent
960884a484
commit
a1bd40f6ef
@ -30,6 +30,7 @@ export function SelectTemplateModal({ onSelectCallback }) {
|
||||
const blankTemplate = templates.find(
|
||||
(template) => template.slug === BLANK_TEMPLATE,
|
||||
);
|
||||
if (!blankTemplate) return; // Prevent close if blank template is still not loaded
|
||||
handleTemplateSelection(blankTemplate);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user