Skip to content

Commit 99713cf

Browse files
committed
try just disabling the tab
1 parent 2532cb2 commit 99713cf

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

ui/src/pages/Settings/SettingsNavigation.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ const SettingsNavigation = () => {
5858
};
5959

6060
const tabItems: TabsProps["items"] = [
61+
{
62+
key: ampSettingsKey,
63+
label: "AMP Settings",
64+
children: <AmpSettingsPage />,
65+
disabled: !config?.is_valid_config,
66+
},
6167
{
6268
key: modelConfigKey,
6369
label: "Model Configuration",
@@ -66,14 +72,6 @@ const SettingsNavigation = () => {
6672
},
6773
];
6874

69-
if (config) {
70-
tabItems.unshift({
71-
key: ampSettingsKey,
72-
label: "AMP Settings",
73-
children: <AmpSettingsPage />,
74-
});
75-
}
76-
7775
const defaultKey = config ? ampSettingsKey : modelConfigKey;
7876
useEffect(() => {
7977
if (location.hash) {

0 commit comments

Comments
 (0)