Skip to content

Commit

Permalink
FOUR-6854 Removed dead code and console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
josechirivella committed Jan 6, 2023
1 parent b5e0ad9 commit c3da2c3
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions src/components/FormDatePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const checkFormats = ["YYYY-MM-DD", moment.ISO_8601];
Validator.register(
"date_or_mustache",
function (value, requirement, attribute) {
function(value, requirement, attribute) {
let rendered = null;
try {
// Clear out any mustache statements
Expand Down Expand Up @@ -135,34 +135,12 @@ export default {
validator: {
deep: true,
handler() {
console.log("validator errors", this.validator);
this.validatorErrors =
this.validator && this.validator.errors.get(this.name)
? this.validator.errors.get(this.name)
: [];
console.log("validatorErrors", this.validatorErrors);
}
}
// value() {
// if (!this.value) {
// this.date = "";
// return;
// }
//
// const newDate = this.generateDate(this.value);
//
// if (!this.isDateAndValueTheSame()) {
// this.date = newDate.format(this.config.format);
// }
// },
// dataFormat: {
// immediate: true,
// handler() {
// this.date = this.value
// ? this.generateDate().format(this.config.format)
// : "";
// }
// }
},
created() {
Validator.register(
Expand Down

0 comments on commit c3da2c3

Please sign in to comment.