diff --git a/src/business-logic/core/places/get-places/data/response-object/getPlacesRO.ts b/src/business-logic/core/places/get-places/data/response-object/getPlacesRO.ts index 1b63fe6..9364a07 100644 --- a/src/business-logic/core/places/get-places/data/response-object/getPlacesRO.ts +++ b/src/business-logic/core/places/get-places/data/response-object/getPlacesRO.ts @@ -7,7 +7,7 @@ const getPlacesRO = (placesResponse: GetPlacesResponse): GetPlacesRO => { id: placeResponse._id, placeType: placeResponse.place_type, name: placeResponse.name, - parentId: placeResponse.place_type, + parentId: placeResponse.parent_id, availableServices: placeResponse.available_services, createdAt: placeResponse.createdAt, updatedAt: placeResponse.updatedAt, diff --git a/src/driven/utils/components/inputs/select-box/InputBox.tsx b/src/driven/utils/components/inputs/select-box/InputBox.tsx index b2dae69..434f27b 100644 --- a/src/driven/utils/components/inputs/select-box/InputBox.tsx +++ b/src/driven/utils/components/inputs/select-box/InputBox.tsx @@ -8,7 +8,8 @@ interface IInputBox extends IInputWrapper { state: { value: { value: ValueType; label: string }; options: { value: ValueType; label: string }[]; - setValue: (newValue: ValueType) => void; + setValue: (newValue: ValueType, label: string) => void; + isLoading?: boolean; }; } @@ -20,10 +21,13 @@ export default function InputBox(props: IInputBox) {