-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot change closeAfterFinish
when using Robodog.form
#1638
Comments
Robodog on CDN wasn’t properly updated after the release, so it could have been an old version. I haven’t tested yet though. |
Reminder to also make |
I tried doing this to improve the error message, like you suggested, @kvz: /**
* Find one Plugin by name.
*
* @param {string} id plugin id
* @return {object | null}
*/
getPlugin (id) {
let foundPlugin = null
this.iteratePlugins((plugin) => {
if (plugin.id === id) {
foundPlugin = plugin
return false
}
})
if (!foundPlugin) {
const pluginList = []
this.iteratePlugins((plugin) => {
pluginList.push(plugin.id)
})
this.log(`No plugin found by id '${id}', did you mean '${pluginList.join("', '")}'`, 'error')
}
return foundPlugin
} But Core actually checks if the plugin exists when |
Tried it like so but it has no effect:
I tried to work around this via:
which resulted in the error:
[Uppy] [21:51:37] uppy.getPlugin(...) is null undefined
I then found the
id
isform:Dashboard
and that worked 🎉 But so maybe the error message[Uppy] [21:51:37] uppy.getPlugin(...) is null undefined
could be changed into sth likeNo plugin found by id "X", did you mean "${pluginlist.join('", "'}"
?The HTML file to reproduce: https://gist.github.com/kvz/cffea041a60dc041f59f79f891d98f44
The text was updated successfully, but these errors were encountered: