Skip to content

Commit

Permalink
style(js): satisfy stylelint
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Schiwon <[email protected]>
  • Loading branch information
blizzz committed Sep 12, 2024
1 parent d3436e8 commit b94be07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/modules/modals/CreateRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions src/store/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b94be07

Please sign in to comment.