Skip to content

Commit

Permalink
fix(create organization): cannot create organization (#184) (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
pimartin committed Jan 15, 2021
1 parent 61a6131 commit f8ccf52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/get-logo-url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function getLogoUrl(context: string, entity: EntityWithLogo, extraQueryPa
const query = qs.stringify({
...extraQueryParams,
// force cache refresh in frontend
id: entity.logo.id,
id: entity.logo?.id,
});
return entity.logo ? `${env.MELI_URL}/api/v1/${context}/${entity._id}/logo?${query}` : undefined;
}

0 comments on commit f8ccf52

Please sign in to comment.