Skip to content

Commit

Permalink
#420: Reload integration after cloning to prevent false ID assignment…
Browse files Browse the repository at this point in the history
… and possible wrong deletion of interventions afterwards.
  • Loading branch information
benitsch committed Jun 5, 2024
1 parent 3b8a816 commit 641f50e
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/components/IntegrationList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,6 @@ Licensed under the Elastic License 2.0. */
}
async function updateIntegration(integration: MoreIntegrationTableMap) {
const i = integrationList.value.findIndex(
(o: MoreIntegrationTableMap) =>
o.observationId === integration.observationId,
);
if (i > -1) {
integrationList.value[i] = integration;
}
await observationsApi
.updateTokenLabel(
props.studyId,
Expand All @@ -231,6 +223,7 @@ Licensed under the Elastic License 2.0. */
token: '',
} as EndpointToken,
)
.then(listIntegrations)
.catch((e: AxiosError) =>
handleIndividualError(
e,
Expand Down

0 comments on commit 641f50e

Please sign in to comment.