2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-05-01 04:56:45 +00:00

Increase timeout for report printing (#8187)

This commit is contained in:
Oliver 2024-09-26 09:48:37 +10:00 committed by GitHub
parent fda47ff6ee
commit 83be3cfa71
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -92,7 +92,7 @@ export function PrintingActions({
url: apiUrl(ApiEndpoints.label_print), url: apiUrl(ApiEndpoints.label_print),
title: t`Print Label`, title: t`Print Label`,
fields: labelFields, fields: labelFields,
timeout: (items.length + 1) * 1000, timeout: (items.length + 1) * 5000,
onClose: () => { onClose: () => {
setPluginKey(''); setPluginKey('');
}, },
@ -121,7 +121,7 @@ export function PrintingActions({
const reportModal = useCreateApiFormModal({ const reportModal = useCreateApiFormModal({
title: t`Print Report`, title: t`Print Report`,
url: apiUrl(ApiEndpoints.report_print), url: apiUrl(ApiEndpoints.report_print),
timeout: (items.length + 1) * 1000, timeout: (items.length + 1) * 5000,
fields: { fields: {
template: { template: {
filters: { filters: {