diff options
Diffstat (limited to 'apps/files/src/services/Recent.ts')
-rw-r--r-- | apps/files/src/services/Recent.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/src/services/Recent.ts b/apps/files/src/services/Recent.ts index 0a953087781..d0ca285b05c 100644 --- a/apps/files/src/services/Recent.ts +++ b/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 |