Skip to content

Commit

Permalink
Fix EsLint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
armine-fliplet committed Sep 20, 2024
1 parent 591f4bc commit 147196b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/components/timeStamp.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ Fliplet.FormBuilder.field('timeStamp', {
},
methods: {
afterFormSubmit: async function(data, form) {
const fields = form.$instance.fields
const fields = form.$instance.fields;
const hasTimeStamp = fields.some(field => field._type === 'flTimeStamp');

if(!hasTimeStamp) {
if (!hasTimeStamp) {
return;
}

const dataSourceId = data.result?.dataSourceId;
const dataSourceId = data.result && data.result.dataSourceId;

if (dataSourceId) {
const connection = await Fliplet.DataSources.connect(dataSourceId);
Expand All @@ -53,6 +53,6 @@ Fliplet.FormBuilder.field('timeStamp', {
});
}
}
},
}
}
});

0 comments on commit 147196b

Please sign in to comment.