[graph] fix term count for sidebar

It was reduced by 1 because the currently selected term was also
counted. Now the algorithm changed, so we don't need to subtract 1
anymore.
parent d1823106
Pipeline #7854 passed with stages
in 21 minutes and 7 seconds