Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: filter lock shape in frame

alt041e7ff0ba2dd
diff --git a/libs/components/board-sessions/src/translate-session.ts b/libs/components/board-sessions/src/translate-session.ts
index 96b2149139..59f227d866 100644
--- a/libs/components/board-sessions/src/translate-session.ts
+++ b/libs/components/board-sessions/src/translate-session.ts
@@ -111,7 +111,8 @@ export class TranslateSession extends BaseSession {
Utils.boundsContain(
TLDR.get_bounds(shap),
TLDR.get_bounds(shapItem)
- )
+ ) &&
+ !shapItem.isLocked
) {
selectedShapes.push(shapItem);
}