Fix basic pathParser plugin functionality (#502)

This commit is contained in:
megatwig
2025-02-10 23:14:59 +00:00
committed by GitHub
parent 04a4a32b7c
commit 56e31db490

View File

@@ -322,6 +322,7 @@ function testRule(pattern, parts) {
}
var matchedParts = [];
var subMatches;
for (var i = 0; i < pattern.length; i++) {
if ((subMatches = testPattern(pattern[i], parts[i])) == null) {
return null;
@@ -653,7 +654,7 @@ function tryGetTag(tag) {
var result = gql.Do(query, variables);
if (!result.findTags || result.findTags.count == 0) {
return;
return null;
}
return result.findTags.tags[0].id;