Browse Source

fix(files): pinia import and usage

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
pull/49432/head
skjnldsv 11 months ago
parent
commit
b9ab76414c
  1. 4
      apps/files/src/services/Recent.ts

4
apps/files/src/services/Recent.ts

@ -9,7 +9,7 @@ import { getCurrentUser } from '@nextcloud/auth'
import { Folder, Permission, davGetRecentSearch, davRootPath, davRemoteURL, davResultToNode } from '@nextcloud/files'
import { CancelablePromise } from 'cancelable-promise'
import { useUserConfigStore } from '../store/userconfig.ts'
import { pinia } from '../store/index.ts'
import { getPinia } from '../store/index.ts'
import { client } from './WebdavClient.ts'
import { getBaseUrl } from '@nextcloud/router'
@ -32,7 +32,7 @@ const resultToNode = (stat: FileStat) => davResultToNode(stat, davRootPath, getB
* @param path Path to search for recent changes
*/
export const getContents = (path = '/'): CancelablePromise<ContentsWithRoot> => {
const store = useUserConfigStore(pinia)
const store = useUserConfigStore(getPinia())
/**
* Filter function that returns only the visible nodes - or hidden if explicitly configured

Loading…
Cancel
Save