From a413cba028bb8f71ff7d24e6f8ae1893f8f70489 Mon Sep 17 00:00:00 2001 From: Andrea Lamparelli Date: Wed, 11 Dec 2024 18:30:09 +0100 Subject: [PATCH] Fix updateSchema call from UI Signed-off-by: Andrea Lamparelli --- horreum-web/src/domain/runs/RunData.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/horreum-web/src/domain/runs/RunData.tsx b/horreum-web/src/domain/runs/RunData.tsx index 0b9beb4f2..6e6eef76f 100644 --- a/horreum-web/src/domain/runs/RunData.tsx +++ b/horreum-web/src/domain/runs/RunData.tsx @@ -90,7 +90,7 @@ export default function RunData(props: RunDataProps) { paths={getPaths(data)} hasRoot={typeof data === "object" && !Array.isArray(data) && data} update={(path, schemaUri, _) => - runApi.updateSchema(props.run.id, schemaUri, path).then( + runApi.updateSchema(props.run.id, path, schemaUri).then( () => props.onUpdate(), error => alerting.dispatchError(error, "SCHEME_UPDATE_FAILED", "Failed to update run schema") )