fix(tag): avoid logging tag state on reorder #7870 (#8122)

Co-authored-by: cocojojo5213 <cocojojo5213@users.noreply.github.com>
This commit is contained in:
felix bear 2026-06-08 18:27:04 +09:00 committed by GitHub
parent 5808b779ac
commit eb5f353021
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -353,7 +353,10 @@ export const tagReducer = createReducer<TagState>(
on(updateTagOrder, (state: TagState, { ids }) => {
if (ids.length !== state.ids.length) {
Log.log({ state, ids });
Log.log({
currentTagCount: state.ids.length,
nextTagCount: ids.length,
});
throw new Error('Tag length should not change on re-order');
}