Skip to content

Commit 6993c30

Browse files
authored
Merge pull request #7335 from umbraco/nielslyngsoe-patch-1
Fix context token instantiation in documentation
2 parents be70451 + ea89564 commit 6993c30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

16/umbraco-cms/customizing/foundation/context-api/consume-a-context.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ const MY_PUBLISHABLE_CONTEXT = new UmbContextToken<
171171

172172
MyContext,
173173
MyPublishableContext
174-
>("My.Context.Token", (context): context is MyPublishableContext => {
174+
>("My.Context.Token", undefined, (context): context is MyPublishableContext => {
175175
return "publish" in context;
176176
});
177177
```

0 commit comments

Comments
 (0)