Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Nüsse <[email protected]>
  • Loading branch information
newhinton authored and korelstar committed Mar 13, 2022
1 parent 4a2385f commit c08c3f2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/EditorEasyMDE.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import store from '../store'
import { showError } from '@nextcloud/dialogs'
import '@nextcloud/dialogs/styles/toast.scss'
export default {
name: 'EditorEasyMDE',
Expand Down Expand Up @@ -185,15 +184,15 @@ export default {
temporaryInput.onchange = async function() {
const data = new FormData()
data.append('file', temporaryInput.files[0])
const originalFilename = temporaryInput.files[0]['name'];
const originalFilename = temporaryInput.files[0].name
const response = await axios({
method: 'POST',
url: generateUrl('apps/notes') + '/notes/' + id + '/attachment',
data,
})
if (response.data.error !== undefined){
console.error(response.data.error)
console.error (response.data.error)
showError(t('notes', 'The file was not uploaded. Check your serverlogs.'),)
} else {
const name = response.data.filename
Expand Down

0 comments on commit c08c3f2

Please sign in to comment.