Skip to content

Commit

Permalink
Fixed feature list - used replace function always for a string (#2884)
Browse files Browse the repository at this point in the history
* Fixed feature list - used replace function always for a string

* Update app/qml/layers/FeaturesListPageV2.qml

Co-authored-by: Tomas Mizera <[email protected]>

---------

Co-authored-by: Tomas Mizera <[email protected]>
  • Loading branch information
iiLubos and tomasMizera authored Oct 31, 2023
1 parent 231fe1e commit d9e460b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/qml/layers/FeaturesListPageV2.qml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Page {

color: InputStyle.fontColor
font.bold: true
text: model.display.replace(/\n/g, ' ')
text: model.display?.toString()?.replace(/\n/g, ' ') ?? ''

font.pixelSize: InputStyle.fontPixelSizeNormal

Expand Down

0 comments on commit d9e460b

Please sign in to comment.