diff --git a/frontend/src/Store/Actions/Creators/createRemoveItemHandler.js b/frontend/src/Store/Actions/Creators/createRemoveItemHandler.js index 286469d57..dfe29ace8 100644 --- a/frontend/src/Store/Actions/Creators/createRemoveItemHandler.js +++ b/frontend/src/Store/Actions/Creators/createRemoveItemHandler.js @@ -14,7 +14,6 @@ function createRemoveItemHandler(section, url) { const ajaxOptions = { url: `${url}/${id}?${$.param(queryParams, true)}`, - dataType: 'text', method: 'DELETE' }; diff --git a/src/Prowlarr.Api.V1/Indexers/IndexerEditorController.cs b/src/Prowlarr.Api.V1/Indexers/IndexerEditorController.cs index cdf6c2061..bde7f5282 100644 --- a/src/Prowlarr.Api.V1/Indexers/IndexerEditorController.cs +++ b/src/Prowlarr.Api.V1/Indexers/IndexerEditorController.cs @@ -76,7 +76,7 @@ namespace Prowlarr.Api.V1.Indexers { _indexerService.DeleteIndexers(resource.IndexerIds); - return new object(); + return new { }; } } } diff --git a/src/Prowlarr.Api.V1/ProviderControllerBase.cs b/src/Prowlarr.Api.V1/ProviderControllerBase.cs index 4784421db..993357745 100644 --- a/src/Prowlarr.Api.V1/ProviderControllerBase.cs +++ b/src/Prowlarr.Api.V1/ProviderControllerBase.cs @@ -102,9 +102,11 @@ namespace Prowlarr.Api.V1 } [RestDeleteById] - public void DeleteProvider(int id) + public object DeleteProvider(int id) { _providerFactory.Delete(id); + + return new { }; } [HttpGet("schema")]