diff options
author | bobzel <zzzman@gmail.com> | 2020-08-14 10:56:37 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-08-14 10:56:37 -0400 |
commit | c628c9305ea5e28f577b5b040a30d7c8aaea3e8c (patch) | |
tree | b9338b90809fb03e100ce8081d84f84310aa7054 | |
parent | cb4bd1777d927b6e861845e4f2ef195b400e6856 (diff) |
fixed crash in schemaCell
-rw-r--r-- | src/client/views/collections/CollectionSchemaCells.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionSchemaCells.tsx b/src/client/views/collections/CollectionSchemaCells.tsx index 7aa8f42b0..bb5acc48a 100644 --- a/src/client/views/collections/CollectionSchemaCells.tsx +++ b/src/client/views/collections/CollectionSchemaCells.tsx @@ -301,7 +301,7 @@ export class CollectionSchemaCell extends React.Component<CellProps> { if (start !== -1) { positions.push(start); } - while (start < contents.length && start !== -1) { + while (start < contents?.length && start !== -1) { term = term.slice(start + search.length + 1); tally += start + search.length + 1; start = term.indexOf(search); |