Skip to content

Commit

Permalink
fix: Use io.cozy.settings.capabilities full id in getById
Browse files Browse the repository at this point in the history
The new recommended way. Also to avoid to flood log in flagship-app.
  • Loading branch information
zatteo authored and Crash-- committed Apr 19, 2023
1 parent a54a8c8 commit abb71d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/cozy-client/src/CozyClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -1699,7 +1699,7 @@ instantiation of the client.`
*/
async loadInstanceOptionsFromStack() {
const { data } = await this.query(
Q('io.cozy.settings').getById('capabilities')
Q('io.cozy.settings').getById('io.cozy.settings.capabilities')
)

this.instanceOptions = {
Expand Down
2 changes: 1 addition & 1 deletion packages/cozy-client/src/hooks/useCapabilities.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const useCapabilities = client => {
setFetchStatus('loading')
try {
const capabilitiesResult = await client.query(
Q('io.cozy.settings').getById('capabilities')
Q('io.cozy.settings').getById('io.cozy.settings.capabilities')
)

setCapabilities(get(capabilitiesResult, 'data.attributes', {}))
Expand Down

0 comments on commit abb71d0

Please sign in to comment.