Skip to content

Commit

Permalink
refactor api
Browse files Browse the repository at this point in the history
  • Loading branch information
wrt95 committed Jan 27, 2025
1 parent 6cec080 commit 57d3f9d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/packages/shared/src/api/mutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,12 @@ export const updateProcessDataTypes = (org: string, app: string, dataTypesChange
// Maskinporten
export const updateSelectedMaskinportenScopes = (org: string, app: string, appScopesUpsertRequest: MaskinportenScopes) => put(selectedMaskinportenScopesPath(org, app), appScopesUpsertRequest);

// Org level code lists - TODO: Replace mocks with correct paths.
// Org level code lists
export const editOrgLevelCodeList = async (codeListItem: OptionListsResponse): Promise<void> =>
// TODO: Replace with endpoint when it is ready in backend. https://github.com/Altinn/altinn-studio/issues/14482
new Promise((resolve) => {
setTimeout(() => {
console.log('Code list edited:', codeListItem);
resolve();
}, 1000);
}, 200);
});

0 comments on commit 57d3f9d

Please sign in to comment.