console: fix autofill url while editing rest endpoint

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10244
GitOrigin-RevId: 37d2e8f226878dcfe3901ce975c0296a1d9ad939
This commit is contained in:
Varun Choudhary 2023-08-31 14:01:19 +05:30 committed by hasura-bot
parent 167e8f4cae
commit 3810b9f70d

View File

@ -125,7 +125,7 @@ export const RestEndpointForm: React.FC<RestEndpointFormProps> = ({
if (!userChangedName) {
setValue('name', operation.name?.value);
}
if (!userChangedUrl) {
if (!userChangedUrl && mode === 'create') {
setValue(
'url',
operation.name?.value