Skip to content

Commit

Permalink
fix(entities-gateway-services): switch enable status fix (#1740)
Browse files Browse the repository at this point in the history
* fix(entities-gateway-services): switch enable status fix

* fix(entities-plugins): switch enable status fix
  • Loading branch information
TT1228 authored Oct 23, 2024
1 parent e4c3e8b commit 69ef079
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -416,12 +416,11 @@ const confirmSwitchEnablement = async () => {
: await axiosInstance.patch(url, { ...switchEnablementTarget.value, enabled })
// Emit the success event for the host app
emit('toggle:success', data)
// Update switchEnablementTarget
switchEnablementTarget.value.enabled = enabled
} catch (e: any) {
emit('error', e)
}
// Update switchEnablementTarget
switchEnablementTarget.value.enabled = enabled
}
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -574,12 +574,11 @@ const confirmSwitchEnablement = async () => {
: await axiosInstance.patch(url, { ...switchEnablementTarget.value, enabled }, { timeout: 120000 })
// Emit the success event for the host app
emit('toggle-enabled', enabled, data)
// Update switchEnablementTarget
switchEnablementTarget.value.enabled = enabled
} catch (e: any) {
emit('error', e)
}
// Update switchEnablementTarget
switchEnablementTarget.value.enabled = enabled
}
/**
Expand Down

0 comments on commit 69ef079

Please sign in to comment.