mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 14:28:51 +08:00
refactor(editor): cleanup ts-expect-error (#9369)
This commit is contained in:
@@ -175,8 +175,8 @@ export const replaceIdMiddleware: JobMiddleware = ({ slots, collection }) => {
|
||||
break;
|
||||
}
|
||||
case 'group': {
|
||||
// @ts-expect-error FIXME: ts error
|
||||
const json = value.children.json as Record<string, unknown>;
|
||||
const json = (value.children as Record<string, unknown>)
|
||||
.json as Record<string, unknown>;
|
||||
Object.entries(json).forEach(([key, value]) => {
|
||||
if (idMap.has(key)) {
|
||||
delete json[key];
|
||||
|
||||
Reference in New Issue
Block a user