From 702f58cf9ec9b34bbc515caa88a752f41b396435 Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Mon, 27 Nov 2017 10:42:22 +0100 Subject: [PATCH] Fix JS lint --- flatisfy/web/js_src/api/index.js | 2 +- flatisfy/web/js_src/views/details.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/flatisfy/web/js_src/api/index.js b/flatisfy/web/js_src/api/index.js index e96f552..27fca9d 100644 --- a/flatisfy/web/js_src/api/index.js +++ b/flatisfy/web/js_src/api/index.js @@ -123,7 +123,7 @@ export const updateFlatVisitDate = function (flatId, newVisitDate, callback) { 'Content-Type': 'application/json' }, body: JSON.stringify({ - visit_date: newVisitDate + visit_date: newVisitDate // eslint-disable-line camelcase }) } ).then(callback).catch(function (ex) { diff --git a/flatisfy/web/js_src/views/details.vue b/flatisfy/web/js_src/views/details.vue index 1956cd9..7ed3dd8 100644 --- a/flatisfy/web/js_src/views/details.vue +++ b/flatisfy/web/js_src/views/details.vue @@ -240,8 +240,8 @@ export default { altFormat: 'h:i K, M j, Y', altInput: true, enableTime: true, - onChange: selectedDates => this.updateFlatVisitDate(selectedDates.length > 0 ? selectedDates[0] : null), - }, + onChange: selectedDates => this.updateFlatVisitDate(selectedDates.length > 0 ? selectedDates[0] : null) + } } },