Skip to content

Commit 442f613

Browse files
committed
js update
Signed-off-by: RAKHI DUTTA <[email protected]>
1 parent c22f12e commit 442f613

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

mcpgateway/static/admin.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4869,7 +4869,7 @@ async function handleEditServerFormSubmit(e) {
48694869
}
48704870
}
48714871

4872-
async function handleEditResourceFormSubmit(e) {
4872+
async function handleEditResFormSubmit(e) {
48734873
e.preventDefault();
48744874
const form = e.target;
48754875
const formData = new FormData(form);
@@ -5481,10 +5481,7 @@ function setupFormHandlers() {
54815481

54825482
const editResourceForm = safeGetElement("edit-resource-form");
54835483
if (editResourceForm) {
5484-
editResourceForm.addEventListener(
5485-
"submit",
5486-
handleEditResourceFormSubmit,
5487-
);
5484+
editResourceForm.addEventListener("submit", handleEditResFormSubmit);
54885485
editResourceForm.addEventListener("click", () => {
54895486
if (getComputedStyle(editResourceForm).display !== "none") {
54905487
refreshEditors();

0 commit comments

Comments
 (0)