From b94be072bd332e9b1d1b6793568e1bb1b3780af4 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Thu, 12 Sep 2024 15:47:44 +0200 Subject: [PATCH] style(js): satisfy stylelint Signed-off-by: Arthur Schiwon --- src/modules/modals/CreateRow.vue | 4 ++-- src/store/data.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/modals/CreateRow.vue b/src/modules/modals/CreateRow.vue index 7ea545efe..7fa4ac831 100644 --- a/src/modules/modals/CreateRow.vue +++ b/src/modules/modals/CreateRow.vue @@ -120,12 +120,12 @@ export default { try { const data = {} for (const [key, value] of Object.entries(this.row)) { - data[key] = value; + data[key] = value } await this.$store.dispatch('insertNewRow', { viewId: this.isView ? this.elementId : null, tableId: !this.isView ? this.elementId : null, - data: data, + data, }) } catch (e) { console.error(e) diff --git a/src/store/data.js b/src/store/data.js index 354909a09..6229b079f 100644 --- a/src/store/data.js +++ b/src/store/data.js @@ -209,9 +209,9 @@ export default { let res = null try { - const collection = viewId == null ? "tables" : "views" + const collection = viewId == null ? 'tables' : 'views' const nodeId = viewId == null ? tableId : viewId - res = await axios.post(generateOcsUrl('/apps/tables/api/2/' + collection + '/' + nodeId + '/rows'), {data: data}) + res = await axios.post(generateOcsUrl('/apps/tables/api/2/' + collection + '/' + nodeId + '/rows'), { data }) } catch (e) { displayError(e, t('tables', 'Could not insert row.')) return false