From cff98f61d8b082ea7e0369afdb414e86a98b3eee Mon Sep 17 00:00:00 2001 From: lucferbux Date: Fri, 8 Nov 2024 13:12:46 +0100 Subject: [PATCH] Fix patternfly 6 isue Signed-off-by: lucferbux --- .../RegisteredModelsTableToolbar.tsx | 25 ++++++++----------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/clients/ui/frontend/src/app/pages/modelRegistry/screens/RegisteredModels/RegisteredModelsTableToolbar.tsx b/clients/ui/frontend/src/app/pages/modelRegistry/screens/RegisteredModels/RegisteredModelsTableToolbar.tsx index 877d1fee..08ad711b 100644 --- a/clients/ui/frontend/src/app/pages/modelRegistry/screens/RegisteredModels/RegisteredModelsTableToolbar.tsx +++ b/clients/ui/frontend/src/app/pages/modelRegistry/screens/RegisteredModels/RegisteredModelsTableToolbar.tsx @@ -52,20 +52,17 @@ const RegisteredModelsTableToolbar: React.FC ref={toggleRef} onClick={() => setIsRegisterNewVersionOpen(!isRegisterNewVersionOpen)} isExpanded={isRegisterNewVersionOpen} - splitButtonOptions={{ - variant: 'action', - items: [ - navigate(registerModelUrl(preferredModelRegistry?.name))} - > - Register model - , - ], - }} + splitButtonItems={[ + navigate(registerModelUrl(preferredModelRegistry?.name))} + > + Register model + , + ]} aria-label="Register model toggle" data-testid="register-model-split-button" />