Skip to content

Commit

Permalink
suppress error toasts in isDatasetAccessibleBySwitching API call (#6580)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel <[email protected]>
  • Loading branch information
hotzenklotz and daniel-wer authored Oct 24, 2022
1 parent 439d5ee commit 44cce16
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frontend/javascripts/admin/admin_rest_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1889,10 +1889,16 @@ export async function isDatasetAccessibleBySwitching(
if (commandType.type === ControlModeEnum.TRACE) {
return Request.receiveJSON(
`/api/auth/accessibleBySwitching?annotationId=${commandType.annotationId}`,
{
showErrorToast: false,
},
);
} else {
return Request.receiveJSON(
`/api/auth/accessibleBySwitching?organizationName=${commandType.owningOrganization}&dataSetName=${commandType.name}`,
{
showErrorToast: false,
},
);
}
}
Expand Down

0 comments on commit 44cce16

Please sign in to comment.