From 3ba2298d09985b9e696b4aa6c44b866a222aa630 Mon Sep 17 00:00:00 2001 From: Mishig Davaadorj Date: Mon, 16 Oct 2023 13:42:03 +0200 Subject: [PATCH] format --- js/src/lib/components/InferenceWidget/shared/helpers.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/src/lib/components/InferenceWidget/shared/helpers.ts b/js/src/lib/components/InferenceWidget/shared/helpers.ts index 8b24e22c0..e96f62d1b 100644 --- a/js/src/lib/components/InferenceWidget/shared/helpers.ts +++ b/js/src/lib/components/InferenceWidget/shared/helpers.ts @@ -15,7 +15,9 @@ export function getWidgetExample( model: ModelData, validateExample: (sample: WidgetExample) => sample is TWidgetExample ): TWidgetExample | undefined { - const validExamples = model.widgetData?.filter((sample): sample is TWidgetExample => sample && validateExample(sample)); + const validExamples = model.widgetData?.filter( + (sample): sample is TWidgetExample => sample && validateExample(sample) + ); return validExamples?.length ? randomItem(validExamples) : undefined; }