Skip to content

Commit

Permalink
Fallback for initial state
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Jul 11, 2020
1 parent 37196bb commit e19c9b6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/AttachmentDragAndDrop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@
import { Modal } from '@nextcloud/vue'
import attachmentUpload from '../mixins/attachmentUpload'
import { loadState } from '@nextcloud/initial-state'
const maxUploadSizeState = loadState('deck', 'maxUploadSize')

let maxUploadSizeState = -1
try {
loadState('deck', 'maxUploadSize')
} catch (e) {}

export default {
name: 'AttachmentDragAndDrop',
Expand Down

0 comments on commit e19c9b6

Please sign in to comment.