mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-22 10:33:22 +00:00
Don't make server url editable if no update function or context
This commit is contained in:
@@ -52,7 +52,7 @@ export function ServerURLForm(props: {
|
||||
});
|
||||
}
|
||||
|
||||
const isEditable = servers.length > 1 || server.variables;
|
||||
const isEditable = stateContext?.onUpdate && (servers.length > 1 || server.variables);
|
||||
return (
|
||||
<form
|
||||
ref={formRef}
|
||||
|
||||
Reference in New Issue
Block a user