Skip to content

Commit

Permalink
fix(files): ensure forbiddenCharacters is an array
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy committed Jul 25, 2024
1 parent 085c037 commit 7ea8ace
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/files/src/components/FileEntry/FileEntryName.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ import { useNavigation } from '../../composables/useNavigation'
import { useRenamingStore } from '../../store/renaming.ts'
import logger from '../../logger.js'

const forbiddenCharacters = loadState('files', 'forbiddenCharacters', '') as string
const forbiddenCharacters = loadState<string>('files', 'forbiddenCharacters', '').split('')

export default Vue.extend({
name: 'FileEntryName',
Expand Down
2 changes: 1 addition & 1 deletion apps/files/src/components/NewNodeDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ interface ICanFocus {
focus: () => void
}

const forbiddenCharacters = loadState<string[]>('files', 'forbiddenCharacters', [])
const forbiddenCharacters = loadState<string>('files', 'forbiddenCharacters', '').split('')

export default defineComponent({
name: 'NewNodeDialog',
Expand Down

0 comments on commit 7ea8ace

Please sign in to comment.