diff --git a/src/components/EditorEasyMDE.vue b/src/components/EditorEasyMDE.vue index 41409ff7b..4130b42b7 100644 --- a/src/components/EditorEasyMDE.vue +++ b/src/components/EditorEasyMDE.vue @@ -18,7 +18,6 @@ import store from '../store' import { showError } from '@nextcloud/dialogs' import '@nextcloud/dialogs/styles/toast.scss' - export default { name: 'EditorEasyMDE', @@ -185,7 +184,7 @@ 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', @@ -193,7 +192,7 @@ export default { }) 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