Skip to content

Commit

Permalink
fix delete labels from the ui
Browse files Browse the repository at this point in the history
  • Loading branch information
barreiro authored Oct 24, 2024
1 parent acc4760 commit cfe6237
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion horreum-web/src/domain/schemas/Labels.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default function Labels({ schemaId, schemaUri, funcsRef }: LabelsProps) {
})
),
...deleted.map(l =>
schemaApi.deleteLabel(l.id, l.schemaId).catch(e => {
schemaApi.deleteLabel(l.schemaId, l.id).catch(e => {
setLabels([...labels, l])
throw e
})
Expand Down

0 comments on commit cfe6237

Please sign in to comment.