From 1414117ac1e22096fed88c3d1198d4a5d0d8437c Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Wed, 4 May 2022 17:31:01 -0400 Subject: [PATCH] fix(striker-ui): install and driver ISO cannot be the same --- striker-ui/components/ProvisionServerDialog.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/striker-ui/components/ProvisionServerDialog.tsx b/striker-ui/components/ProvisionServerDialog.tsx index 2c367748..669afeb8 100644 --- a/striker-ui/components/ProvisionServerDialog.tsx +++ b/striker-ui/components/ProvisionServerDialog.tsx @@ -1537,6 +1537,7 @@ const ProvisionServerDialog = ({ 'Install ISO', fileSelectItems, { + disableItem: (value) => value === inputDriverISOFileUUID, hideItem: (value) => !includeFileUUIDs.includes(value), selectProps: { onChange: ({ target: { value } }) => { @@ -1555,6 +1556,7 @@ const ProvisionServerDialog = ({ 'Driver ISO', fileSelectItems, { + disableItem: (value) => value === inputInstallISOFileUUID, hideItem: (value) => !includeFileUUIDs.includes(value), selectProps: { onChange: ({ target: { value } }) => {