fix label clear bug, invalid delete URL, and remove dead connector method

This commit is contained in:
CREDO23 2026-02-19 14:35:30 +02:00
parent 4c1fbc7482
commit e79ec9234a
3 changed files with 9 additions and 23 deletions

View file

@ -198,6 +198,7 @@ function ApprovalCard({
}
function buildFinalArgs() {
const labelsWereProposed = Array.isArray(actionArgs.new_label_ids);
return {
issue_id: issue?.id,
document_id: issue?.document_id,
@ -207,7 +208,7 @@ function ApprovalCard({
new_state_id: selectedStateId === "__none__" ? null : selectedStateId,
new_assignee_id: selectedAssigneeId === "__none__" ? null : selectedAssigneeId,
new_priority: selectedPriority === "__none__" ? null : Number(selectedPriority),
new_label_ids: selectedLabelIds,
new_label_ids: labelsWereProposed || selectedLabelIds.length > 0 ? selectedLabelIds : null,
};
}