Skip to content

Commit

Permalink
fix(files): correct API parameters
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux authored Feb 7, 2025
1 parent 336ab6a commit b0c9b1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/files/src/store/viewConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ export const useViewConfigStore = defineStore('viewconfig', () => {

/**
* Update the view config local store AND on server side
* @param viewId Id of the view to update
* @param view Id of the view to update
* @param key Config key to update
* @param value New value
*/
async function update(viewId: ViewId, key: string, value: string | number | boolean): Promise<void> {
async function update(view: ViewId, key: string, value: string | number | boolean): Promise<void> {
if (getCurrentUser() !== null) {
await axios.put(generateUrl('/apps/files/api/v1/views'), {
value,
viewId,
view,
key,
})
}
Expand Down

0 comments on commit b0c9b1e

Please sign in to comment.