refactor(frontend): align TJWater Next integrations
This commit is contained in:
@@ -124,7 +124,7 @@ const AnalysisParameters: React.FC<AnalysisParametersProps> = ({
|
||||
if (!feature) return;
|
||||
if (
|
||||
feature.getGeometry()?.getType() === "Point" ||
|
||||
(layer !== "geo_pipes_mat" && layer !== "geo_pipes")
|
||||
layer !== "pipes"
|
||||
) {
|
||||
open?.({
|
||||
type: "error",
|
||||
@@ -248,7 +248,7 @@ const AnalysisParameters: React.FC<AnalysisParametersProps> = ({
|
||||
if (highlightFeatures.length > 0 || pipePoints.length === 0) return;
|
||||
queryFeaturesByIds(
|
||||
pipePoints.map((pipe) => pipe.id),
|
||||
"geo_pipes_mat",
|
||||
"pipes",
|
||||
).then((features) => {
|
||||
if (features.length > 0) {
|
||||
setHighlightFeatures(features);
|
||||
|
||||
Reference in New Issue
Block a user