Skip to content

Commit

Permalink
Fixed bug where verse marker was not added after editing chapter. (#1190
Browse files Browse the repository at this point in the history
)

The issue here is that we are checking based on the label and not the formatted label. The label for chapter maker 2 and verse marker 2 is just "2", however, the formatted label is "chapter-marker-2" and "verse-marker-2"
  • Loading branch information
darrellcolehill authored Oct 29, 2024
1 parent 44b3df8 commit 002f4b5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ class MarkerPlacementModel(
.map { marker -> MarkerItem(marker, false) }

val missing = all
.filter { marker ->
placedMarkerItems.any { it.marker.label == marker.label }.not()
.filter { markerItem ->
placedMarkerItems.any { it.marker.formattedLabel == markerItem.marker.formattedLabel }.not()
}
.toTypedArray()

Expand Down

0 comments on commit 002f4b5

Please sign in to comment.