mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-04-10 16:46:19 +00:00
Ensured tags list keeps sorted after editing a tag
This commit is contained in:
@@ -43,7 +43,7 @@ export default function reducer(state = defaultState, action) {
|
||||
...state,
|
||||
tags: state.tags.map(
|
||||
tag => tag === action.oldName ? action.newName : tag
|
||||
),
|
||||
).sort(),
|
||||
};
|
||||
default:
|
||||
return state;
|
||||
|
||||
Reference in New Issue
Block a user