Skip to content

Commit

Permalink
Fix feature count in IdentifyViewer.jsx (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
cazitouni authored Dec 20, 2024
1 parent 218c114 commit d8d07ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/IdentifyViewer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ class IdentifyViewer extends React.Component {
))}
</select>
<span className="identify-buttonbox-spacer" />
<span>{LocaleUtils.tr("identify.featurecount")}: {Object.values(this.state.resultTree || {}).flat().length}</span>
<span>{LocaleUtils.tr("identify.featurecount")}: {Object.values(this.state.selectedLayer !== '' ? this.state.resultTree[this.state.selectedLayer] : this.state.resultTree ).flat().length}</span>
</div>
{Object.keys(this.state.selectedLayer !== '' ? { [this.state.selectedLayer]: this.state.resultTree[this.state.selectedLayer] } : this.state.resultTree).map(layer => {
const layerResults = this.state.resultTree[layer];
Expand Down

0 comments on commit d8d07ad

Please sign in to comment.