From 03870c0c6fecc9f450d0cca316ec8be1d29c74e8 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sun, 19 Aug 2018 20:11:43 +0200 Subject: [PATCH] Ensured tags list keeps sorted after editing a tag --- src/tags/reducers/tagsList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tags/reducers/tagsList.js b/src/tags/reducers/tagsList.js index e75b3bd1..e48aa7ee 100644 --- a/src/tags/reducers/tagsList.js +++ b/src/tags/reducers/tagsList.js @@ -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;