Skip to content

Commit 2587db5

Browse files
committed
use of files from subdir in create and edit node disabled
1 parent f532396 commit 2587db5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/component/modals/NodeDetails.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ const NodeDetails = ({
158158
if (item.key.toString().includes('.md')) {
159159
return null;
160160
}
161+
if (item.key.toString().split('/').length > 2) {
162+
return null;
163+
}
161164
// eslint-disable-next-line max-len
162165
if ((acceptedTypes.some((substring) => item.key.toString().includes(substring)))) {
163166
const fileName = item.key.toString().split('.')[0].concat('.md');

0 commit comments

Comments
 (0)