Skip to content

Commit 1dc58f2

Browse files
committed
Fix searching for models in a mega-model
It was failing to match if the search string contained upper case characters. Refs pombase/pombase-gocam#108
1 parent f2c3bba commit 1dc58f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gocam_view/templates/gocam_view/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@
10931093
node.data.node_id &&
10941094
node.data.node_id.toLowerCase().includes(searchText)) ||
10951095
node.data.type == 'model' &&
1096-
(node.data.label.includes(searchText) ||
1096+
(node.data.label.toLowerCase().includes(searchText) ||
10971097
node.data.id == 'gomodel:' + searchText)) {
10981098
currentData = node.data;
10991099
cy.getElementById(node.data.id).select();

0 commit comments

Comments
 (0)