@@ -6903,13 +6903,10 @@ async function handleGatewayFormSubmit(e) {
6903
6903
formData . append ( "oauth_config" , JSON . stringify ( oauthConfig ) ) ;
6904
6904
}
6905
6905
6906
- const response = await fetchWithTimeout (
6907
- `${ window . ROOT_PATH } /admin/gateways` ,
6908
- {
6909
- method : "POST" ,
6910
- body : formData ,
6911
- } ,
6912
- ) ;
6906
+ const response = await fetch ( `${ window . ROOT_PATH } /admin/gateways` , {
6907
+ method : "POST" ,
6908
+ body : formData ,
6909
+ } ) ;
6913
6910
const result = await response . json ( ) ;
6914
6911
6915
6912
if ( ! result || ! result . success ) {
@@ -6967,13 +6964,10 @@ async function handleResourceFormSubmit(e) {
6967
6964
const isInactiveCheckedBool = isInactiveChecked ( "resources" ) ;
6968
6965
formData . append ( "is_inactive_checked" , isInactiveCheckedBool ) ;
6969
6966
6970
- const response = await fetchWithTimeout (
6971
- `${ window . ROOT_PATH } /admin/resources` ,
6972
- {
6973
- method : "POST" ,
6974
- body : formData ,
6975
- } ,
6976
- ) ;
6967
+ const response = await fetch ( `${ window . ROOT_PATH } /admin/resources` , {
6968
+ method : "POST" ,
6969
+ body : formData ,
6970
+ } ) ;
6977
6971
const result = await response . json ( ) ;
6978
6972
if ( ! result || ! result . success ) {
6979
6973
throw new Error ( result ?. message || "Failed to add Resource" ) ;
@@ -7025,13 +7019,10 @@ async function handlePromptFormSubmit(e) {
7025
7019
const isInactiveCheckedBool = isInactiveChecked ( "prompts" ) ;
7026
7020
formData . append ( "is_inactive_checked" , isInactiveCheckedBool ) ;
7027
7021
7028
- const response = await fetchWithTimeout (
7029
- `${ window . ROOT_PATH } /admin/prompts` ,
7030
- {
7031
- method : "POST" ,
7032
- body : formData ,
7033
- } ,
7034
- ) ;
7022
+ const response = await fetch ( `${ window . ROOT_PATH } /admin/prompts` , {
7023
+ method : "POST" ,
7024
+ body : formData ,
7025
+ } ) ;
7035
7026
const result = await response . json ( ) ;
7036
7027
if ( ! result || ! result . success ) {
7037
7028
throw new Error ( result ?. message || "Failed to add prompt" ) ;
@@ -7131,14 +7122,10 @@ async function handleServerFormSubmit(e) {
7131
7122
const isInactiveCheckedBool = isInactiveChecked ( "servers" ) ;
7132
7123
formData . append ( "is_inactive_checked" , isInactiveCheckedBool ) ;
7133
7124
7134
- const response = await fetchWithTimeout (
7135
- `${ window . ROOT_PATH } /admin/servers` ,
7136
- {
7137
- method : "POST" ,
7138
- body : formData ,
7139
- redirect : "manual" ,
7140
- } ,
7141
- ) ;
7125
+ const response = await fetch ( `${ window . ROOT_PATH } /admin/servers` , {
7126
+ method : "POST" ,
7127
+ body : formData ,
7128
+ } ) ;
7142
7129
const result = await response . json ( ) ;
7143
7130
if ( ! result || ! result . success ) {
7144
7131
throw new Error ( result ?. message || "Failed to add server." ) ;
@@ -7214,13 +7201,10 @@ async function handleToolFormSubmit(event) {
7214
7201
const isInactiveCheckedBool = isInactiveChecked ( "tools" ) ;
7215
7202
formData . append ( "is_inactive_checked" , isInactiveCheckedBool ) ;
7216
7203
7217
- const response = await fetchWithTimeout (
7218
- `${ window . ROOT_PATH } /admin/tools` ,
7219
- {
7220
- method : "POST" ,
7221
- body : formData ,
7222
- } ,
7223
- ) ;
7204
+ const response = await fetch ( `${ window . ROOT_PATH } /admin/tools` , {
7205
+ method : "POST" ,
7206
+ body : formData ,
7207
+ } ) ;
7224
7208
const result = await response . json ( ) ;
7225
7209
if ( ! result || ! result . success ) {
7226
7210
throw new Error ( result ?. message || "Failed to add tool" ) ;
0 commit comments