Skip to content

Commit

Permalink
Fix color bugs for overriden predefined (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
meomancer authored Nov 19, 2024
1 parent 158730d commit 054d627
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion django_project/_commit_hash.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
24aac4bc3175037479ab01decf2b01e9f0e5e42e
158730d76e51290ce01ac8d3c45d299d961bbae2
2 changes: 1 addition & 1 deletion django_project/_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0
2.0.1
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export const IndicatorStyle = forwardRef(
updateData()
}}
valuesUrl={`/api/indicator/${indicator.id}/values/flat/`}
defaultStyleRules={indicator?.style ? indicator?.style : []}
defaultStyleRules={dataLayer.style ? dataLayer.style : indicator?.style ? indicator?.style : []}
selectableInput={batch !== null}
/> : null
}
Expand Down
2 changes: 2 additions & 0 deletions django_project/frontend/src/utils/referenceLayer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ export function returnValueByGeometry(
allData = allData.filter(row => filteredGeometries.includes(row.concept_uuid))
}
allData = UpdateStyleData(allData, config)
} else if (layer.override_style) {
allData = UpdateStyleData(allData, layer)
}

const byGeometry = {}
Expand Down

0 comments on commit 054d627

Please sign in to comment.