Fixed google maps bug, changed size, gardenSize, and price colum names, fixed bug with query review not showing default values
This commit is contained in:
@@ -14,12 +14,12 @@ const getQueryReview = async (req,res) => {
|
||||
realEstateType,
|
||||
region,
|
||||
municipality,
|
||||
size,
|
||||
sizeRange,
|
||||
gardenSize,
|
||||
gardenSizeRange,
|
||||
price,
|
||||
priceRange } = request.dataValues;
|
||||
sizeMin,
|
||||
sizeMax,
|
||||
gardenSizeMin,
|
||||
gardenSizeMax,
|
||||
priceMin,
|
||||
priceMax } = request.dataValues;
|
||||
|
||||
const realEstateTypeObject = getRealEstateTypeEnum(realEstateType);
|
||||
const enableGardenSizeEdit = realEstateTypeObject ? realEstateTypeObject.hasGardenSize : false;
|
||||
@@ -27,9 +27,9 @@ const getQueryReview = async (req,res) => {
|
||||
const realEstateTypeTitle = realEstateType ? getEnumTypeTitle(realEstateTypes, realEstateType) : null;
|
||||
const regionName = region ? getRegionName(region) : null;
|
||||
const municipalityName = (region && municipality) ? getMunicipalityName(region, municipality) : null;
|
||||
const sizeTitle = size ? size + "-" + sizeRange + " m2" : null;
|
||||
const gardenSizeTitle = gardenSize ? gardenSize + "-" + gardenSizeRange + " m2" : null;
|
||||
const priceTitle = price ? price + "-" + priceRange + " KM" : null;
|
||||
const sizeTitle = sizeMin ? sizeMin + "-" + sizeMax + " m2" : null;
|
||||
const gardenSizeTitle = gardenSizeMin ? gardenSizeMin + "-" + gardenSizeMax + " m2" : null;
|
||||
const priceTitle = priceMin ? priceMin + "-" + priceMax + " KM" : null;
|
||||
|
||||
const uniqueId = request.dataValues.uniqueId ? request.dataValues.uniqueId : '';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user