eleven-solutions-common-website-unique-web 22.0.18 → 22.0.19
Sign up to get free protection for your applications and to get access to all the features.
@@ -56,6 +56,17 @@ const TemplateForm = ({ url }) => {
|
|
56
56
|
fetchTemplateData();
|
57
57
|
}
|
58
58
|
}, [id]);
|
59
|
+
useEffect(() => {
|
60
|
+
if (id) {
|
61
|
+
setTid(id);
|
62
|
+
setIsEditMode(true);
|
63
|
+
setLoading(true);
|
64
|
+
}
|
65
|
+
else {
|
66
|
+
setIsEditMode(false);
|
67
|
+
setLoading(false);
|
68
|
+
}
|
69
|
+
}, [id]);
|
59
70
|
const handleSubmit = (event) => __awaiter(void 0, void 0, void 0, function* () {
|
60
71
|
event.preventDefault();
|
61
72
|
if (!validateForm())
|