mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-04-11 00:56:20 +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,
|
...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;
|
||||||
|
|||||||
Reference in New Issue
Block a user