Skip to content

Commit

Permalink
Fix updateSchema call from UI
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Lamparelli <[email protected]>
  • Loading branch information
lampajr authored Dec 11, 2024
1 parent 7687a47 commit a413cba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion horreum-web/src/domain/runs/RunData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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")
)
Expand Down

0 comments on commit a413cba

Please sign in to comment.