Deal with no predictions gracefully (#2499)

This commit is contained in:
Charis Kyriakou
2023-06-09 13:17:26 +01:00
committed by GitHub
parent 6b8169c479
commit d485ff0015
2 changed files with 2 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ export interface ModelRequest {
export interface ModelResponse {
language: string;
predicted: Method[];
predicted?: Method[];
}
export async function autoModel(

View File

@@ -414,7 +414,7 @@ export class DataExtensionsEditorView extends AbstractWebview<
});
const predictedModeledMethods = parsePredictedClassifications(
response.predicted,
response.predicted || [],
);
await this.showProgress({