From 1c75d777fa4db504210ab2b678c6b006d9972c80 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Thu, 30 Jun 2022 13:31:15 +0200 Subject: [PATCH] fix(ui) - visibility settings --- .../SessionSettings/components/ListingVisibility.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/frontend/app/components/shared/SessionSettings/components/ListingVisibility.tsx b/frontend/app/components/shared/SessionSettings/components/ListingVisibility.tsx index 30f3c3960..1151c0eed 100644 --- a/frontend/app/components/shared/SessionSettings/components/ListingVisibility.tsx +++ b/frontend/app/components/shared/SessionSettings/components/ListingVisibility.tsx @@ -20,7 +20,7 @@ function ListingVisibility() { const sessionSettings = settingsStore.sessionSettings const [durationSettings, setDurationSettings] = React.useState(sessionSettings.durationFilter); - const changeSettings = (changes) => { + const changeSettings = (changes: any) => { setDurationSettings({ ...durationSettings, ...changes }); setChanged(true); } @@ -40,7 +40,7 @@ function ListingVisibility() { options={numberOptions} defaultValue={numberOptions[0].value} onChange={({ value }) => { - changeSettings({ operator: value }) + changeSettings({ operator: value.value }) }} /> @@ -50,8 +50,7 @@ function ListingVisibility() { type="number" name="count" placeholder="E.g 10" - // style={{ height: '38px', width: '100%'}} - onChange={({ target: { value } }) => { + onChange={({ target: { value } }: any) => { changeSettings({ count: value }) }} /> @@ -61,7 +60,7 @@ function ListingVisibility() { defaultValue={periodOptions[1].value} options={periodOptions} onChange={({ value }) => { - changeSettings({ countType: value }) + changeSettings({ countType: value.value }) }} />