Bug/mcp bas lag (#543)
* fix(mcp): update workflow descriptions for transaction categorization and approval processes * feat: implement account validation for transaction categorization to handle inactive accounts * fix(tests): stub findMissingAccountsMock to ensure no missing accounts during batch-categorize tests * fix(errors): ensure deterministic sorting of account numbers in AccountsNotInChartError
This commit is contained in:
@@ -229,6 +229,11 @@ export default function QuickReviewDialog({
|
||||
setShowUploadZone(false)
|
||||
} catch {
|
||||
setError('Ett fel uppstod vid bokföring.')
|
||||
} finally {
|
||||
// Always reset isProcessing — without this, an onConfirm that resolves
|
||||
// with null (e.g. server returned a structured 4xx error like
|
||||
// ACCOUNTS_NOT_IN_CHART) leaves the dialog frozen because the
|
||||
// <Dialog onOpenChange> below disables backdrop/ESC while processing.
|
||||
setIsProcessing(false)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user