mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00:00
feat: add block visibility config (#8371)
This commit is contained in:
@@ -313,7 +313,7 @@ const SAVE_CHAT_TO_BLOCK_ACTION: ChatAction = {
|
||||
curMode,
|
||||
rootService as RootService
|
||||
);
|
||||
const newBlockIndex = layer.generateIndex('affine:embed-ai-chat');
|
||||
const newBlockIndex = layer.generateIndex();
|
||||
// If current mode is not edgeless, switch to edgeless mode first
|
||||
if (curMode !== 'edgeless') {
|
||||
// Set mode to edgeless
|
||||
|
||||
@@ -113,7 +113,7 @@ function createNewNote(host: EditorHost): AIItemConfig {
|
||||
{
|
||||
xywh: newBound.serialize(),
|
||||
displayMode: NoteDisplayMode.EdgelessOnly,
|
||||
index: service.generateIndex('affine:note'),
|
||||
index: service.generateIndex(),
|
||||
},
|
||||
doc.root.id
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user