Skip to content

Commit

Permalink
fix: Use complete settings id in useInstanceInfo
Browse files Browse the repository at this point in the history
Related to : in next versions of cozy-client, it will not be possible
to query settings with an incomplete id
  • Loading branch information
zatteo committed Feb 2, 2024
1 parent c88d681 commit cd85d89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cozy-client/src/hooks/useInstanceInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ export const useInstanceInfo = () => {
instanceQuery.options
)

const contextQuery = buildSettingsByIdQuery('context')
const contextQuery = buildSettingsByIdQuery('io.cozy.settings.context')
const contextResult = useQuery(contextQuery.definition, contextQuery.options)

const diskUsageQuery = buildSettingsByIdQuery('disk-usage')
const diskUsageQuery = buildSettingsByIdQuery('io.cozy.settings.disk-usage')
const diskUsageResult = useQuery(
diskUsageQuery.definition,
diskUsageQuery.options
Expand Down

0 comments on commit cd85d89

Please sign in to comment.