Skip to content

Commit

Permalink
PATCH: fix(file-manager): match file name based on 'file_name' field …
Browse files Browse the repository at this point in the history
…instead of 'name' (#263)
  • Loading branch information
NicolasRichel committed Dec 20, 2022
1 parent 64223df commit e20eb9a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ export default {
},
methods: {
isDisabled(file) {
const extensionMatch = file.name.match(/\.(\w+$)/);
const extensionMatch = file.file_name.match(/\.(\w+$)/);
const fileExtension = extensionMatch && extensionMatch[1];
return (
Expand Down

0 comments on commit e20eb9a

Please sign in to comment.