tester.js: ignore displayTypeSignature if it is null

This commit is contained in:
binarycat
2025-03-26 20:32:14 -05:00
parent 74b7599230
commit 65624d9ea5

View File

@@ -451,7 +451,7 @@ function loadSearchJS(doc_folder, resource_suffix) {
if (!Object.prototype.hasOwnProperty.call(entry, key)) {
continue;
}
if (key === "displayTypeSignature") {
if (key === "displayTypeSignature" && entry.displayTypeSignature !== null) {
const {type, mappedNames, whereClause} =
await entry.displayTypeSignature;
entry.displayType = arrayToCode(type);