mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-04-20 13:36:20 +00:00
Improved how tags are exposed by the ApiClient when listing tags
This commit is contained in:
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user