🐛 fix(genericModal/index.tsx): close modal when template has no varia… (#911)
…bles to prevent user confusion
This commit is contained in:
commit
e1bb4b4a24
2 changed files with 124 additions and 7281 deletions
7404
src/frontend/package-lock.json
generated
7404
src/frontend/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -131,6 +131,7 @@ export default function GenericModal({
|
|||
setNoticeData({
|
||||
title: "Your template does not have any variables.",
|
||||
});
|
||||
setModalOpen(false);
|
||||
} else {
|
||||
setIsEdit(false);
|
||||
setSuccessData({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue