mirror of
https://github.com/transloadit/uppy.git
synced 2026-01-22 18:16:26 +00:00
Guard concurrent generate calls
This commit is contained in:
parent
65b5b70cee
commit
4b1b729069
1 changed files with 2 additions and 1 deletions
|
|
@ -160,7 +160,8 @@ export default class ImageGenerator<
|
|||
* - Uninstall: closeAssembly(true) called directly, cancels server-side assembly
|
||||
*/
|
||||
generate = async () => {
|
||||
if (this.getPluginState().prompt.trim() === '') return
|
||||
const { loading, prompt } = this.getPluginState()
|
||||
if (loading || prompt.trim() === '') return
|
||||
|
||||
const { promise, resolve, reject } = Promise.withResolvers<void>()
|
||||
let cancelled = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue