diff --git a/src/store/reducers.ts b/src/store/reducers.ts index b979104..798f3f1 100644 --- a/src/store/reducers.ts +++ b/src/store/reducers.ts @@ -173,9 +173,9 @@ const deleteMapModelReducer = >(state: T, action: any) => return state; } - const id = payload as number; + const uid = payload.uid; let value = state.get('value', null)!; - value = value.delete(id); + value = value.delete(uid); return state.set('value', value); } };