fix presentation snapshot feature

This commit is contained in:
Ramón Souza 2022-08-18 15:17:38 -03:00
parent 81b15ae329
commit ff52b6ae28

View File

@ -189,7 +189,7 @@ const PresentationMenu = (props) => {
try {
const { copySvg, getShapes, currentPageId } = tldrawAPI;
const svgString = copySvg(getShapes(currentPageId).map((shape) => shape.id));
const svgString = await copySvg(getShapes(currentPageId).map((shape) => shape.id));
const container = document.createElement('div');
container.innerHTML = svgString;
const svgElem = container.firstChild;