This commit is contained in:
@@ -109,6 +109,11 @@ export default {
|
||||
|
||||
//is it a valid date?
|
||||
if (!(parsedDate instanceof Date && !isNaN(parsedDate))) {
|
||||
if (window.$gz.dev) {
|
||||
throw new Error(
|
||||
`locale::utcDateToScheduleCompatibleFormatLocalized - Value '${value}' is not parseable`
|
||||
);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -126,7 +131,6 @@ export default {
|
||||
timeZone: timeZoneName
|
||||
});
|
||||
const parts = formatter.formatToParts(parsedDate);
|
||||
//console.log(parts);
|
||||
|
||||
let p = { year: null, month: null, day: null, hour: null, minute: null };
|
||||
parts.forEach(x => {
|
||||
|
||||
@@ -390,8 +390,6 @@ export default {
|
||||
this.formState.serverError = res.error;
|
||||
window.$gz.form.setErrorBoxErrors(this);
|
||||
} else {
|
||||
console.log("fetch raw data:", JSON.stringify(res.data));
|
||||
|
||||
this.events = res.data.map(x => {
|
||||
return {
|
||||
...x,
|
||||
@@ -409,11 +407,6 @@ export default {
|
||||
)
|
||||
};
|
||||
});
|
||||
|
||||
console.log(
|
||||
"fetch events data after processing:",
|
||||
JSON.stringify(this.events)
|
||||
);
|
||||
}
|
||||
} catch (error) {
|
||||
window.$gz.errorHandler.handleFormError(error, this);
|
||||
|
||||
Reference in New Issue
Block a user