From 18d857ab1cc2fc403ae0bf0a0c49caaa494e0fc3 Mon Sep 17 00:00:00 2001
From: Mishig Davaadorj
Date: Fri, 22 Sep 2023 15:36:53 +0200
Subject: [PATCH] [Widget Too Big] Should be if-else statement
---
.../shared/WidgetWrapper/WidgetWrapper.svelte | 61 ++++++++++---------
1 file changed, 31 insertions(+), 30 deletions(-)
diff --git a/js/src/lib/components/InferenceWidget/shared/WidgetWrapper/WidgetWrapper.svelte b/js/src/lib/components/InferenceWidget/shared/WidgetWrapper/WidgetWrapper.svelte
index 185006f24..7e88129e2 100644
--- a/js/src/lib/components/InferenceWidget/shared/WidgetWrapper/WidgetWrapper.svelte
+++ b/js/src/lib/components/InferenceWidget/shared/WidgetWrapper/WidgetWrapper.svelte
@@ -77,38 +77,39 @@
>
instead.
- {/if}
- {#if isMaximized}
-
- {/if}
-
- {#if !!inputGroups.length}
-
-
- {#if inputGroups.length > 1}
-
+
+
+ {/if}
+
+ {#if !!inputGroups.length}
+
+
+ {#if inputGroups.length > 1}
+ group)}
+ />
+ {/if}
+ group)}
+ inputSamples={selectedInputSamples?.inputSamples ?? []}
+ {applyInputSample}
+ {previewInputSample}
/>
- {/if}
-
-
+
+ {/if}
+
+
+
+ {#if modelLoading.isLoading}
+
{/if}
-
-
-
- {#if modelLoading.isLoading}
-
+
+
{/if}
-
-