Fix #2339: protect users from containerdelete with no arguments

This commit is contained in:
Oliver Blanthorn 2020-06-19 22:23:06 +01:00
parent 3a80fd03cb
commit dfd8236a6c
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -2643,6 +2643,7 @@ export async function containercreate(name: string, color?: string, icon?: strin
*/
//#background
export async function containerdelete(name: string) {
if (name == undefined) return
await containerclose(name)
await Container.remove(name)
}