Dev #3
@@ -94,15 +94,12 @@ export const TriageDeck: React.FC<TriageDeckProps> = ({
|
||||
x.set(0);
|
||||
|
||||
try {
|
||||
const updated = await api.triageAction(targetCard.id, action, {
|
||||
await api.triageAction(targetCard.id, action, {
|
||||
convertTo: options?.convertTo,
|
||||
targetListId: options?.targetListId,
|
||||
dueDate: options?.dueDate,
|
||||
});
|
||||
onDeckChange();
|
||||
if (options?.convertTo === 'document' && updated.convertedRefId) {
|
||||
onOpenDocument(updated.convertedRefId);
|
||||
}
|
||||
} catch {
|
||||
onDeckChange();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user