Check for undefined query results (#350)

This commit is contained in:
Steve Faulkner 2020-12-18 19:55:32 -06:00 committed by GitHub
parent b000631a0c
commit c3058ee5a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -103,7 +103,7 @@
</div> </div>
<json-editor <json-editor
params="{ content: queryResults, isReadOnly: true, ariaLabel: 'Query results' }" params="{ content: queryResults, isReadOnly: true, ariaLabel: 'Query results' }"
data-bind="visible: queryResults().length > 0 && isResultToggled() && allResultsMetadata().length > 0 && !error()" data-bind="visible: queryResults() && queryResults().length > 0 && isResultToggled() && allResultsMetadata().length > 0 && !error()"
> >
</json-editor> </json-editor>
<div <div

View File

@ -17,9 +17,7 @@ export class TabRouteHandler {
): void { ): void {
this._initRouter(); this._initRouter();
const parseHash = (newHash: string, oldHash: string) => this._tabRouter.parse(newHash); const parseHash = (newHash: string, oldHash: string) => this._tabRouter.parse(newHash);
const defaultRoutedCallback = (request: string, data: { route: any; params: string[]; isFirst: boolean }) => { const defaultRoutedCallback = (request: string, data: { route: any; params: string[]; isFirst: boolean }) => {};
console.log(request);
};
this._tabRouter.routed.add(onMatch || defaultRoutedCallback); this._tabRouter.routed.add(onMatch || defaultRoutedCallback);
hasher.initialized.add(parseHash); hasher.initialized.add(parseHash);
hasher.changed.add(parseHash); hasher.changed.add(parseHash);