fix: add eqeqeq lint rule (#5106)

This commit is contained in:
LongYinan
2023-11-29 04:43:31 +00:00
parent a843dcd851
commit 923844f302
12 changed files with 18 additions and 16 deletions

View File

@@ -50,7 +50,7 @@ function migrateDatabase(data: YMap<unknown>) {
update: (cell: { id: string; value: unknown }) => void
) => {
Object.values(cells).forEach(row => {
if (row[id] != null) {
if (row[id] !== null && row[id] !== undefined) {
update(row[id]);
}
});