Ensure the logFileLocation is set

`logFileLocation` was not set after a query finishes running. I don't
know when this bug was introduced. I think it goes as far back as
the refactor to remove the old query server.
This commit is contained in:
Andrew Eisenberg
2023-10-16 16:44:49 -07:00
parent fca68edbb3
commit cc0e850c72

View File

@@ -74,7 +74,10 @@ export class CompletedQueryInfo implements QueryWithResults {
* Map from result set name to SortedResultSetInfo.
*/
public sortedResultsInfo: Record<string, SortedResultSetInfo> = {},
) {}
) {
// The log path is only set when loading from the query history.
this.logFileLocation = logFileLocation ?? this.query.logPath;
}
setResultCount(value: number) {
this.resultCount = value;