Skip to content

Commit

Permalink
Fix link initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Aug 8, 2023
1 parent 17937f3 commit 3fb3099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inflators/link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ export type LinkParams = {
export function inflateLink(world: HubsWorld, eid: number, params: LinkParams): number {
addComponent(world, Link, eid);
Link.url[eid] = APP.getSid(params.href);
Link.type[eid] = params.type || LinkType.LINK;
Link.type[eid] = params.type !== undefined ? params.type : LinkType.LINK;
return eid;
}

0 comments on commit 3fb3099

Please sign in to comment.