Skip to content

Commit 8f7de1c

Browse files
authored
doc: fix init flow example code (#26154)
Minor fix for example code in recommended init flow doc
1 parent a5b8587 commit 8f7de1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/data-structures/tree/recommended-init-flow.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export class CollaborationFluidClient {
9797
if (containerId.length === 0) {
9898
// Path 1: Creating a new container
9999
const container = await this.createFluidContainer();
100-
const view: TreeView = container.initialObjects.appData.viewWith(AppDataTreeConfiguration);
100+
const view = container.initialObjects.appData.viewWith(AppDataTreeConfiguration);
101101

102102
if (!view.compatibility.canInitialize) {
103103
throw new Error("The tree must be safe to initialize upon creation of the Fluid container");
@@ -110,7 +110,7 @@ export class CollaborationFluidClient {
110110
} else {
111111
// Path 2: Loading an existing container
112112
const container = await this.loadFluidContainer(containerId);
113-
const view: TreeView= container.initialObjects.appData.viewWith(AppDataTreeConfiguration);
113+
const view = container.initialObjects.appData.viewWith(AppDataTreeConfiguration);
114114

115115
if (view.compatibility.canInitialize) {
116116
throw new Error("The tree should already be initialized if the Fluid container exists");

0 commit comments

Comments
 (0)