mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 14:27:02 +08:00
refactor(editor): add runtime type checks to database cell values (#10770)
This commit is contained in:
@@ -531,8 +531,11 @@ test.describe('readonly mode', () => {
|
||||
});
|
||||
await cell.click();
|
||||
await pressEnter(page);
|
||||
await waitNextFrame(page, 100);
|
||||
await type(page, '123');
|
||||
await waitNextFrame(page, 100);
|
||||
await pressEnter(page);
|
||||
await waitNextFrame(page, 100);
|
||||
await assertDatabaseCellRichTexts(page, { text: '123' });
|
||||
|
||||
await switchReadonly(page);
|
||||
|
||||
@@ -386,6 +386,9 @@ export async function initKanbanViewState(
|
||||
});
|
||||
config.columns.forEach(column => {
|
||||
const columnId = datasource.propertyAdd('end', column.type);
|
||||
if (!columnId) {
|
||||
return;
|
||||
}
|
||||
datasource.propertyNameSet(columnId, column.type);
|
||||
rowIds.forEach((rowId, index) => {
|
||||
const value = column.value?.[index];
|
||||
|
||||
Reference in New Issue
Block a user