BuddhaNexus / buddhanexus-frontend-next

BuddhaNexus Frontend 2.0
buddhanexus-frontend-next.vercel.app
2 stars 1 forks source link

Not updating matches on filter change #109

Closed ayya-vimala closed 4 months ago

ayya-vimala commented 9 months ago

When I change the sliding filters in the text-view mode, the right viewport doesn't update the matches shown.

F.i. go to a random text in text view mode. Click on a segment and see a number of matches in the right. Then note the % and length of the first match. Go to the settings and move the sliders to the right beyond the noted % and length and see that the matches have not changed, even if in the whole document there are no more matches. Maybe best to change rightview to show no matches if there is a change in the sliding filters and remove the highlighting on the left viewport's chosen segment.

Image

(in the screenshot see the number of matches is 0 at the top left .... still there are 69 matches shown in the right column.

ayya-vimala commented 5 months ago

The frontend doesn't feed the limit filters to the API call so they are not registered by the backend.

ayya-vimala commented 4 months ago

This seems to work now.