Clear all tag fields when deleting tag from spool

Delete Tag only cleared tag_uid, leaving tray_uuid, tag_type, and
  data_origin as stale data. Now sends all four fields as null.
This commit is contained in:
maziggy
2026-03-25 14:06:39 +01:00
parent c5dedff113
commit 91320e76d3
4 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -372,7 +372,7 @@ export function SpoolFormModal({
const deleteTagMutation = useMutation({
mutationFn: () =>
api.updateSpool(spool!.id, { tag_uid: null } as Parameters<typeof api.updateSpool>[1]),
api.updateSpool(spool!.id, { tag_uid: null, tray_uuid: null, tag_type: null, data_origin: null } as Parameters<typeof api.updateSpool>[1]),
onSuccess: async () => {
await queryClient.invalidateQueries({ queryKey: ['inventory-spools'] });
showToast(t('inventory.tagDeleted', 'Tag removed'), 'success');