BUG-15031 We can't delete folders using controls into grid SOLVED

- Type is not defined 'file or directory'
- add type in file casesDocuments.js