Skip to content

Commit

Permalink
fix: fix exception (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon authored Jan 10, 2022
1 parent 349368a commit 4377730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/elastic/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const mapHit = ({
address: address[0],
siret: siret[0],
idccs,
is_siege: is_siege[0],
is_siege: (is_siege && is_siege.length && is_siege[0]) || false,
})
);

Expand Down

0 comments on commit 4377730

Please sign in to comment.