Skip to content

Commit

Permalink
fixup! Preserve sort order
Browse files Browse the repository at this point in the history
Signed-off-by: hamza mahjoubi <[email protected]>
  • Loading branch information
hamza221 committed Dec 12, 2023
1 parent b56fbf7 commit 0b3b0e4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/viewer-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/viewer-main.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/services/FileSortingConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
*/

import axios from '@nextcloud/axios'
import { isPublic } from '../utils/davUtils'

/**
* @return {object}
Expand All @@ -43,6 +44,9 @@ export default async function getSortingConfig() {
* @return {object}
*/
async function getViewConfigs() {
if (isPublic()) {
return null
}
return await axios.get('/apps/files/api/v1/views').then((response) => {
return response.data.data?.files
})
Expand Down

0 comments on commit 0b3b0e4

Please sign in to comment.