Skip to content

Commit

Permalink
fix: fix error cause by layers with non-standard objectid fields in t…
Browse files Browse the repository at this point in the history
…he project info widget
  • Loading branch information
stdavis committed Aug 16, 2023
1 parent 3ba636c commit 7c89e75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export default function App() {
.filter((hitResult) => !config.projectInformation.excludedLayers.includes(hitResult.graphic.layer.title))
.map(async (hitResult) => {
const results = await hitResult.graphic.layer.queryFeatures({
objectIds: [hitResult.graphic.attributes.OBJECTID],
objectIds: [hitResult.graphic.attributes[hitResult.graphic.layer.objectIdField]],
returnGeometry: true,
outFields: '*',
});
Expand Down

0 comments on commit 7c89e75

Please sign in to comment.