Skip to content

Commit

Permalink
fix: print link with ID instead of object Object when logging the link (
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaoste authored Dec 27, 2023
1 parent c2ad0d6 commit 9fb3510
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/visual-sdk/src/store/EntityStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,11 @@ export class EntityStore {
entityLink: UnresolvedLink<'Entry' | 'Asset'>,
path: string[]
): string | undefined {
entityLink.sys.type;
const entity = this.getEntity(entityLink.sys.linkType, entityLink.sys.id);

if (!entity) {
// TODO: move to `debug` utils once it is extracted
console.warn(`Unresolved entity reference: ${entityLink}`);
console.warn(`Unresolved entity reference: ${entityLink.sys.linkType} with ID ${entityLink.sys.id}`);
return;
}

Expand Down

0 comments on commit 9fb3510

Please sign in to comment.