Skip to content

Commit

Permalink
Fix codes
Browse files Browse the repository at this point in the history
  • Loading branch information
meomancer committed Sep 26, 2024
1 parent e4a4a49 commit d2c8205
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions deployment/.template.env
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@ DEFAULT_FROM_EMAIL=

# --------------------------------
# ---------- APP DOMAIN ----------
# This is needed for tenants
# Required for tenant configurations
APP_DOMAIN=localhost

# -------------------------------
# ---------- PLUGINS ------------
# Add or remove the app that you want the app
# Put it in comma separator
# Specify the plugins to enable or disable
# Use a comma-separated list

# Plugins app on GeoSight
# GeoSight plugins:
# - tenants
# - cloud_native_gis
# - reference_dataset
PLUGINS=tenants,cloud_native_gis,reference_dataset
PLUGINS=
# -----------------------------
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import { ThemeButton } from "../../../../components/Elements/Button";
import { updateDataWithMapbox } from "../../../../utils/CloudNativeGIS";
import MapboxStyleInformation
from "../../../../components/Buttons/MapboxStyleInformation";
import { Variables } from "../../../../utils/Variables";


export default function AggregationStyleConfig({ data, setData, setError }) {
Expand All @@ -36,7 +37,7 @@ export default function AggregationStyleConfig({ data, setData, setError }) {
if (data.styles !== inputStyle) {
setInputStyle(data.styles)
}
if (data.cloud_native_gis_layer_id) {
if (!data.mapbox_style) {
(
async () => {
const newData = await updateDataWithMapbox(data)
Expand Down Expand Up @@ -93,7 +94,7 @@ export default function AggregationStyleConfig({ data, setData, setError }) {
<br/>
<br/>
{
data.mapbox_style ?
data.mapbox_style && data.layer_type === Variables.TERMS.CLOUD_NATIVE_GIS ?
<ThemeButton
variant="primary"
onClick={() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ export function getContext(
const url = urls.drilldown.replace('concept_uuid', concept_uuid)
const params = {
rtconfigs: JSON.stringify(indicatorLayersConfig),
reference_layer_uuid: referenceLayerData?.data?.uuid | referenceLayerData?.data?.identifier
reference_layer_uuid: referenceLayerData?.data?.uuid ? referenceLayerData?.data?.uuid : referenceLayerData?.data?.identifier
}
const session = new Session('FetchingPopupContext')
fetchingData(
Expand Down
1 change: 0 additions & 1 deletion django_project/initialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@

print("-----------------------------------------------------")
print("2. Running the migrations")
call_command('makemigrations')
call_command('migrate', '--noinput')

#########################################################
Expand Down

0 comments on commit d2c8205

Please sign in to comment.