From 72df9c6d1397abdff9849fba82e754ab52acc60c Mon Sep 17 00:00:00 2001 From: jomarmontuya Date: Tue, 26 Mar 2024 05:50:11 +0800 Subject: [PATCH] account ui top right search support legacy search --- src/components/accounts/ui/select/AccountsComboBox.js | 3 ++- src/components/console/AccountsAppbar.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/accounts/ui/select/AccountsComboBox.js b/src/components/accounts/ui/select/AccountsComboBox.js index 36fc9996e..beec9f2d7 100644 --- a/src/components/accounts/ui/select/AccountsComboBox.js +++ b/src/components/accounts/ui/select/AccountsComboBox.js @@ -141,7 +141,7 @@ const StyledPopper = styled(Popper)({ const filterOptions = createFilterOptions({ matchFrom: 'any', - stringify: (option) => option.name + option.value, + stringify: (option) => option.name + option.value + option.id, }); const Index = ({ @@ -161,6 +161,7 @@ const Index = ({ return { name: e.name, value: e.ZUID, + id: e.ID, }; }); diff --git a/src/components/console/AccountsAppbar.js b/src/components/console/AccountsAppbar.js index 1b239ae7e..eb65fa623 100644 --- a/src/components/console/AccountsAppbar.js +++ b/src/components/console/AccountsAppbar.js @@ -93,6 +93,7 @@ export const AccountsAppbar = ({ colorInvert = false }) => { if (isDocsPage) { return <>; } + return (