From 28eebee195002855ee7d1a3d51837b1521e3e587 Mon Sep 17 00:00:00 2001 From: Qian Xia Date: Wed, 15 May 2024 11:53:01 +0800 Subject: [PATCH] [#3285] fix(web): disable the metalake select with only one (#3385) ### What changes were proposed in this pull request? disable the metalake select with only one image ### Why are the changes needed? With only one metalake UI presents user with a choice Fix: #3285 ### Does this PR introduce _any_ user-facing change? N/A ### How was this patch tested? manual --- web/src/app/rootLayout/AppBar.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/app/rootLayout/AppBar.js b/web/src/app/rootLayout/AppBar.js index 94d885365b4..47b45c4e389 100644 --- a/web/src/app/rootLayout/AppBar.js +++ b/web/src/app/rootLayout/AppBar.js @@ -90,6 +90,7 @@ const AppBar = () => { data-refer='select-metalake' value={metalake} label='Metalake' + disabled={store.metalakes.length === 1} sx={{ width: '100%' }} > {metalakes.map(item => {