Skip to content

Commit

Permalink
Merge pull request #6577 from TheThingsNetwork/fix/purge-bug
Browse files Browse the repository at this point in the history
Fix purge is not purging
  • Loading branch information
ryaplots authored Sep 28, 2023
2 parents 1daa35a + 2b7031d commit 55ebc0f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/webui/account/containers/oauth-client-edit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const ClientAdd = props => {
setError(undefined)

try {
await dispatch(attachPromise(deleteClient(clientId, shouldPurge)))
await dispatch(attachPromise(deleteClient(clientId, { purge: shouldPurge || false })))
navigate('/oauth-clients')
toast({
title: clientId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ const ApplicationGeneralSettingsContainer = ({ appId }) => {
setError(undefined)

try {
await dispatch(attachPromise(deleteApplication(appId, shouldPurge)))
await dispatch(attachPromise(deleteApplication(appId, { purge: shouldPurge || false })))
toast({
title: appId,
message: m.deleteSuccess,
Expand Down
2 changes: 1 addition & 1 deletion pkg/webui/console/containers/organization-form/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const OrganizationUpdateForm = ({ onDeleteSuccess }) => {
const handleDelete = useCallback(
async shouldPurge => {
try {
await dispatch(attachPromise(deleteOrganization(orgId, { purge: shouldPurge })))
await dispatch(attachPromise(deleteOrganization(orgId, { purge: shouldPurge || false })))
toast({
title: orgId,
message: m.deleteSuccess,
Expand Down
2 changes: 1 addition & 1 deletion pkg/webui/console/views/gateway-general-settings/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const GatewayGeneralSettingsInner = () => {
const handleDelete = useCallback(
async shouldPurge => {
try {
await dispatch(attachPromise(deleteGateway(gtwId, shouldPurge || false)))
await dispatch(attachPromise(deleteGateway(gtwId, { purge: shouldPurge || false })))
navigate('/gateways')
toast({
title: gtwId,
Expand Down

0 comments on commit 55ebc0f

Please sign in to comment.