Skip to content

Commit

Permalink
psp-9865 - fix map click loading logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
devinleighsmith committed Jan 21, 2025
1 parent 85ba808 commit 5f91a18
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions source/backend/api/Pims.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<UserSecretsId>0ef6255f-9ea0-49ec-8c65-c172304b4926</UserSecretsId>
<Version>5.7.1-96.22</Version>
<AssemblyVersion>5.7.1.96</AssemblyVersion>
<Version>5.7.2-96.22</Version>
<AssemblyVersion>5.7.2.96</AssemblyVersion>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<ProjectGuid>{16BC0468-78F6-4C91-87DA-7403C919E646}</ProjectGuid>
<TargetFramework>net8.0</TargetFramework>
Expand Down
2 changes: 1 addition & 1 deletion source/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "frontend",
"version": "5.7.1-96.22",
"version": "5.7.2-96.22",
"private": true,
"dependencies": {
"@bcgov/bc-sans": "1.0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@ const useLocationFeatureLoader = () => {
const boundaryFeature = await findOneByBoundary(latLng, 'GEOMETRY', 4326);
if (exists(boundaryFeature)) {
pimsLocationProperties = { features: [boundaryFeature], type: 'FeatureCollection' };
} else if (exists(parcelFeature)) {
} else if (
exists(parcelFeature) &&
(exists(parcelFeature.properties?.PID) || exists(parcelFeature.properties?.PIN))
) {
pimsLocationProperties = await loadProperties({
PID: parcelFeature.properties?.PID || '',
PIN: parcelFeature.properties?.PIN?.toString() || '',
Expand Down

0 comments on commit 5f91a18

Please sign in to comment.