Fixed missing params var when Album::add returns and error

This commit is contained in:
Tobias Reich 2016-01-31 17:51:42 +01:00
parent 83e3271f43
commit 7dc4e01313

View File

@ -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