🐛 fix(genericModal/index.tsx): close modal when template has no varia… (#911)

…bles to prevent user confusion
This commit is contained in:
Cristhian Zanforlin Lousa 2023-09-13 22:26:38 -03:00 committed by GitHub
commit e1bb4b4a24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 124 additions and 7281 deletions

File diff suppressed because it is too large Load diff

View file

@ -131,6 +131,7 @@ export default function GenericModal({
setNoticeData({
title: "Your template does not have any variables.",
});
setModalOpen(false);
} else {
setIsEdit(false);
setSuccessData({