mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-18 00:46:45 +00:00
Co-authored-by: cocojojo5213 <cocojojo5213@users.noreply.github.com>
This commit is contained in:
parent
5808b779ac
commit
eb5f353021
1 changed files with 4 additions and 1 deletions
|
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue