"Add" button in terms shows when table is not empty, but not when term doesn't exist
We have this condition in G.C.NgramsTable:
, if A.null props.tableBody && searchQuery /= "" then
This is wrong: suppose we type in a1 into the query and there is only 1 result: data1. The Add "a1" button won't show in this case, even if term doesn't exist in the table, because the tableBody and searchQuery are not empty.
This should be somehow refactored, though it could be deep because tableBody is a Array R.Element so it represents rendered HTML already and we don't know what the search results are at this place. Maybe adding a exactMatches :: Boolean would do here?