process/create-kp: auto download kp file

This commit is contained in:
vchikalkin 2023-05-31 11:56:16 +03:00
parent 5c8560e266
commit cadfec5fc2

View File

@ -57,6 +57,10 @@ export function action({ store, trpcClient, apolloClient }: ProcessContext) {
message: successMessage,
});
if (res.data.values.downloadKp) {
window.open(res.data.values.downloadKp, '_blank');
}
await updateSelectQuote({ apolloClient, store });
}
})