Skip to content

Commit

Permalink
Fix: Swaped ternary statement terms (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
gareth-amazon authored Dec 17, 2021
1 parent acb7520 commit b7899f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/asset-modules/sitewise/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export type AssetHierarchyQuery = AssetQuery & {
};

export function assetHierarchyQueryKey(query: AssetHierarchyQuery): string {
return (query.assetId ? '' : (query.assetId + ":")) + query.assetHierarchyId;
return (query.assetId ? (query.assetId + ":") : '') + query.assetHierarchyId;
}
export const isAssetHierarchyQuery = (query: AssetQuery): query is AssetHierarchyQuery =>
(query as AssetHierarchyQuery).assetHierarchyId != undefined;
Expand Down

0 comments on commit b7899f1

Please sign in to comment.