Added map to kivi ad preview.

This commit is contained in:
Naida Vatric
2020-02-23 01:52:43 +01:00
parent 16d004c1ab
commit 2218e6888a
5 changed files with 94 additions and 27 deletions

View File

@@ -134,9 +134,7 @@ const getViewRealEstate = async (req, res) => {
...BASIC_SEGMENT_PUBLISH,
...ADDITIONAL_SEGMENT_PUBLISH
];
//
console.log("ALL BOOLEAN FIELDS:", ALL_BOOLEAN_FIELDS);
console.log("All boolean values", allBooleanValues);
//On view add page we will show only values that are not - null, or "", or undefined
const forShowing = value => {
return value !== false && value !== null && value !== "";
@@ -153,15 +151,15 @@ const getViewRealEstate = async (req, res) => {
return forShowing(allSegmentSelectedValues[object.dbField]);
});
//console.log("booleanFields", booleanFields);
res.render("viewRealEstate", {
title: pageTitle,
booleanFields,
inputFields,
allInputValues,
segmentFields,
allSegmentSelectedValues
allSegmentSelectedValues,
locationLat,
locationLong
});
};