feat: remove automatic frame naming (#8302)

This commit is contained in:
David Luzar
2024-07-31 13:56:11 +02:00
committed by GitHub
parent 5a0771ad9c
commit e844580b14
3 changed files with 6 additions and 35 deletions
+3 -6
View File
@@ -755,15 +755,12 @@ export const isElementInFrame = (
return false;
};
export const getFrameLikeTitle = (
element: ExcalidrawFrameLikeElement,
frameIdx: number,
) => {
export const getFrameLikeTitle = (element: ExcalidrawFrameLikeElement) => {
// TODO name frames "AI" only if specific to AI frames
return element.name === null
? isFrameElement(element)
? `Frame ${frameIdx}`
: `AI Frame $${frameIdx}`
? "Frame"
: "AI Frame"
: element.name;
};