Skip to content

Commit

Permalink
feat(AddressDef): adding some additional properties to the address ob…
Browse files Browse the repository at this point in the history
…j we set in the query builder (#1596)
  • Loading branch information
dvoegelin authored Sep 10, 2024
2 parents 5c2bcb2 + 2c03c3f commit 4a9b7bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ export class NovoDefaultAddressConditionDef extends AbstractConditionFieldDef im
address_components: event.address_components,
formatted_address: event.formatted_address,
geometry: event.geometry,
name: event.name,
place_id: event.place_id,
types: event.types,
};
const current: AddressData | AddressData[] = this.getValue(formGroup);
const updated: AddressData[] = Array.isArray(current) ? [...current, valueToAdd] : [valueToAdd];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,10 @@ export interface AddressData {
address_components: AddressComponent[];
formatted_address: string;
geometry: AddressGeometry;
name?: string;
place_id: string;
radius?: AddressRadius;
types?: string[];
}

export interface AddressRadius {
Expand Down

0 comments on commit 4a9b7bd

Please sign in to comment.