From 7cd0345cd237f3541c40eb95f44d7d11c34d95ab Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Mon, 16 Jan 2023 20:25:27 -0600 Subject: [PATCH] fix(gui): correct menu state for additional models --- gui/src/components/ModelControl.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gui/src/components/ModelControl.tsx b/gui/src/components/ModelControl.tsx index ef1b2f4b4..ae43c0bbe 100644 --- a/gui/src/components/ModelControl.tsx +++ b/gui/src/components/ModelControl.tsx @@ -62,10 +62,10 @@ export function ModelControl() { result: models, selector: (result) => result.upscaling, }} - value={params.model} - onChange={(model) => { + value={params.upscaling} + onChange={(upscaling) => { setModel({ - model, + upscaling, }); }} /> @@ -77,10 +77,10 @@ export function ModelControl() { result: models, selector: (result) => result.correction, }} - value={params.model} - onChange={(model) => { + value={params.correction} + onChange={(correction) => { setModel({ - model, + correction, }); }} />