fix: default date issue and remove commented code, unnecessary using useEffect

This commit is contained in:
RaktimaNXG
2024-03-13 14:30:25 +05:30
parent c04fd80a38
commit 73b2ba6abd
4 changed files with 58 additions and 109 deletions
+5 -1
View File
@@ -249,7 +249,11 @@ export const addWidgetOptions = (type) => {
case "job title":
return { ...defaultOpt, validation: { type: "text", pattern: "" } };
case "date":
return { ...defaultOpt, response: getDate() };
return {
...defaultOpt,
response: getDate(),
validation: { format: "MM/dd/yyyy", type: "date-format" }
};
case "image":
return defaultOpt;
case "email":