@apotech-os/support-kit 2.7.0 → 2.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui/index.js CHANGED
@@ -4797,10 +4797,11 @@ function SingleTicketTab({ langfuseConfig, agents, categories, knownTags, tagSet
4797
4797
  ...autoSendOverride ? { autoSend: true } : {}
4798
4798
  };
4799
4799
  const payload = {
4800
- ...isInline ? { inlineTicket: { body: body.trim(), ...subject.trim() ? { subject: subject.trim() } : {}, channel } } : { ticketId: ticketId.trim() },
4801
- ...agentId.trim() ? { agentId: agentId.trim() } : {},
4802
- ...categoryId.trim() ? { categoryId: categoryId.trim() } : {},
4803
- ...Object.keys(overrides).length > 0 ? { overrides } : {}
4800
+ ticketId: isInline ? null : ticketId.trim(),
4801
+ inlineTicket: isInline ? { body: body.trim(), subject: subject.trim() || null, channel } : null,
4802
+ agentId: agentId.trim() || null,
4803
+ categoryId: categoryId.trim() || null,
4804
+ overrides: Object.keys(overrides).length > 0 ? overrides : null
4804
4805
  };
4805
4806
  try {
4806
4807
  const response = await api.invoke(