mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Remove selected object when storing to backend (#506)
This commit is contained in:
parent
a436e70764
commit
48024c9116
2 changed files with 9 additions and 3 deletions
|
@ -23,7 +23,10 @@ const probablySupportsClipboard =
|
|||
const scales = [1, 2, 3];
|
||||
const defaultScale = scales.includes(devicePixelRatio) ? devicePixelRatio : 1;
|
||||
|
||||
type ExportCB = (elements: readonly ExcalidrawElement[], scale: number) => void;
|
||||
type ExportCB = (
|
||||
elements: readonly ExcalidrawElement[],
|
||||
scale?: number
|
||||
) => void;
|
||||
|
||||
export function ExportDialog({
|
||||
elements,
|
||||
|
@ -129,7 +132,7 @@ export function ExportDialog({
|
|||
icon={link}
|
||||
title={t("buttons.getShareableLink")}
|
||||
aria-label={t("buttons.getShareableLink")}
|
||||
onClick={() => onExportToBackend(exportedElements, 1)}
|
||||
onClick={() => onExportToBackend(exportedElements)}
|
||||
/>
|
||||
</Stack.Row>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue