aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/web/package-lock.json1
-rw-r--r--src/web/package.json1
-rw-r--r--src/web/src/components/System/Shares/ContentsModal.jsx6
3 files changed, 4 insertions, 4 deletions
diff --git a/src/web/package-lock.json b/src/web/package-lock.json
index 4c670d54..f4022f3b 100644
--- a/src/web/package-lock.json
+++ b/src/web/package-lock.json
@@ -14,7 +14,6 @@
"@microsoft/signalr": "^7.0.7",
"@uiw/react-codemirror": "^4.2.4",
"axios": "^0.25.0",
- "lodash": "^4.17.21",
"lz-string": "^1.4.4",
"react": "^16.8.6",
"react-dom": "^16.8.6",
diff --git a/src/web/package.json b/src/web/package.json
index 87b6eba1..49990771 100644
--- a/src/web/package.json
+++ b/src/web/package.json
@@ -19,7 +19,6 @@
"@microsoft/signalr": "^7.0.7",
"@uiw/react-codemirror": "^4.2.4",
"axios": "^0.25.0",
- "lodash": "^4.17.21",
"lz-string": "^1.4.4",
"react": "^16.8.6",
"react-dom": "^16.8.6",
diff --git a/src/web/src/components/System/Shares/ContentsModal.jsx b/src/web/src/components/System/Shares/ContentsModal.jsx
index bb5b3fc9..5399bcf2 100644
--- a/src/web/src/components/System/Shares/ContentsModal.jsx
+++ b/src/web/src/components/System/Shares/ContentsModal.jsx
@@ -1,6 +1,5 @@
import { browse } from '../../../lib/shares';
import { CodeEditor, LoaderSegment, Switch } from '../../Shared';
-import { orderBy } from 'lodash';
import React, { useEffect, useState } from 'react';
import { Button, Icon, Modal } from 'semantic-ui-react';
@@ -18,8 +17,11 @@ const ContentsModal = ({ onClose, share, theme }) => {
const directories = result.map((directory) => {
const lines = [directory.name.replace(remotePath, localPath)];
+ const directoryFilesOrderedByFilename = directory.files.sort(
+ (file1, file2) => file1.filename.localeCompare(file2.filename),
+ );
- for (const file of orderBy(directory.files, 'filename')) {
+ for (const file of directoryFilesOrderedByFilename) {
lines.push('\t' + file.filename.replace(remotePath, ''));
}