mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-03 23:07:26 +03:00
Ensured tags list keeps sorted after editing a tag
This commit is contained in:
parent
5d2de11615
commit
03870c0c6f
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ export default function reducer(state = defaultState, action) {
|
||||||
...state,
|
...state,
|
||||||
tags: state.tags.map(
|
tags: state.tags.map(
|
||||||
tag => tag === action.oldName ? action.newName : tag
|
tag => tag === action.oldName ? action.newName : tag
|
||||||
),
|
).sort(),
|
||||||
};
|
};
|
||||||
default:
|
default:
|
||||||
return state;
|
return state;
|
||||||
|
|
Loading…
Reference in a new issue