Skip to content

Commit dee42b8

Browse files
committed
feat: clean backend endpoint input
1 parent 30b3371 commit dee42b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

webapp/_webapp/src/views/settings/sections/user-developer-tools.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const UserDeveloperTools = () => {
4040
label="Backend Endpoint"
4141
description="You need to refresh the page to apply the changes"
4242
value={endpoint}
43-
onChange={setEndpoint}
43+
onChange={(value) => setEndpoint(value.replace(/\s+/g, "").replace(/\/+$/, ""))}
4444
showResetButton={true}
4545
onReset={() => {
4646
resetApiClientEndpoint();

0 commit comments

Comments
 (0)