fix: migration props:elements (#2889)

This commit is contained in:
regischen
2023-06-28 14:24:14 +08:00
committed by GitHub
parent da57fbeadd
commit fd0aa4a2ee
2 changed files with 12 additions and 4 deletions

View File

@@ -38,6 +38,10 @@ describe('subdoc', () => {
if (id === 'xyWNqindHH') {
return;
}
if (blocks[id]['sys:flavour'] === 'affine:surface' && !blocks[id]['prop:elements']) {
blocks[id]['prop:elements'] = data[id]['prop:elements'];
}
expect(data[id]).toEqual(blocks[id]);
});
});