Improved how tags are exposed by the ApiClient when listing tags

This commit is contained in:
Alejandro Celaya
2020-05-10 11:20:40 +02:00
parent 67c674f073
commit 6fd30ed51a
4 changed files with 6 additions and 5 deletions

View File

@@ -54,7 +54,8 @@ export default class ShlinkApiClient {
listTags = () =>
this._performRequest('/tags', 'GET', { withStats: 'true' })
.then((resp) => resp.data.tags);
.then((resp) => resp.data.tags)
.then(({ data, stats }) => ({ tags: data, stats }));
deleteTags = (tags) =>
this._performRequest('/tags', 'DELETE', { tags })