Skip to content

Commit

Permalink
use of files from subdir in create and edit node disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahuljagwani committed Jul 30, 2023
1 parent f532396 commit 2587db5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/component/modals/NodeDetails.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ const NodeDetails = ({
if (item.key.toString().includes('.md')) {
return null;
}
if (item.key.toString().split('/').length > 2) {
return null;
}
// eslint-disable-next-line max-len
if ((acceptedTypes.some((substring) => item.key.toString().includes(substring)))) {
const fileName = item.key.toString().split('.')[0].concat('.md');
Expand Down

0 comments on commit 2587db5

Please sign in to comment.