Fixed missing params var when Album::add returns and error
This commit is contained in:
parent
83e3271f43
commit
7dc4e01313
@ -112,7 +112,11 @@ album.add = function() {
|
|||||||
|
|
||||||
if (title.length===0) title = 'Untitled'
|
if (title.length===0) title = 'Untitled'
|
||||||
|
|
||||||
api.post('Album::add', { title }, function(data) {
|
let params = {
|
||||||
|
title
|
||||||
|
}
|
||||||
|
|
||||||
|
api.post('Album::add', params, function(data) {
|
||||||
|
|
||||||
// Avoid first album to be true
|
// Avoid first album to be true
|
||||||
if (data===true) data = 1
|
if (data===true) data = 1
|
||||||
|
Loading…
Reference in New Issue
Block a user