Skip to content

Commit 597e7b5

Browse files
committed
fix(board): pass files into shared board initial data
1 parent 961747a commit 597e7b5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

apps/frontend/src/pages/board/SharedBoardPage.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const VIEWER_UI_OPTIONS = {
4444
type Snapshot = {
4545
elements?: readonly unknown[] | null;
4646
appState?: Record<string, unknown> | null;
47+
files?: Record<string, unknown> | null;
4748
};
4849

4950
export function SharedBoardPage() {
@@ -109,6 +110,7 @@ export function SharedBoardPage() {
109110
normalizeAppStateForExcalidraw(snapshot.appState) ??
110111
snapshot.appState ??
111112
undefined,
113+
files: snapshot.files ?? undefined,
112114
} as React.ComponentProps<typeof Excalidraw>["initialData"];
113115

114116
return (

0 commit comments

Comments
 (0)