mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-25 18:26:05 +08:00
fix(web): minor bug fixes (#9696)
Co-authored-by: Mirone <Saul-Mirone@outlook.com>
This commit is contained in:
@@ -30,11 +30,6 @@ export const BRACKET_PAIRS: BracketPair[] = [
|
||||
left: '"',
|
||||
right: '"',
|
||||
},
|
||||
{
|
||||
name: 'angle bracket',
|
||||
left: '<',
|
||||
right: '>',
|
||||
},
|
||||
{
|
||||
name: 'fullwidth single quote',
|
||||
left: '‘',
|
||||
|
||||
@@ -26,7 +26,7 @@ async function exportDocs(collection: Workspace, docs: Store[]) {
|
||||
snapshots
|
||||
.filter((snapshot): snapshot is DocSnapshot => !!snapshot)
|
||||
.map(async snapshot => {
|
||||
const snapshotName = `${snapshot.meta.id}.snapshot.json`;
|
||||
const snapshotName = `${snapshot.meta.title || 'untitled'}.snapshot.json`;
|
||||
await zip.file(snapshotName, JSON.stringify(snapshot, null, 2));
|
||||
})
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user