mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-09 05:05:52 +08:00
refactor(editor): enable the noUncheckedIndexedAccess rule for the data-view package (#9351)
close: BS-2230
This commit is contained in:
@@ -94,12 +94,15 @@ export class DatabaseColumnStatsCell extends SignalWatcher(
|
||||
if (!groups[func.group]) {
|
||||
groups[func.group] = {};
|
||||
}
|
||||
const oldFunc = groups[func.group][func.type];
|
||||
const oldFunc = groups[func.group]?.[func.type];
|
||||
if (!oldFunc || typeSystem.unify(func.dataType, oldFunc.dataType)) {
|
||||
if (!func.impl) {
|
||||
delete groups[func.group][func.type];
|
||||
delete groups[func.group]?.[func.type];
|
||||
} else {
|
||||
groups[func.group][func.type] = func;
|
||||
const group = groups[func.group];
|
||||
if (group) {
|
||||
group[func.type] = func;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user