make sure style.id is not 0 in saveStyle

This commit is contained in:
tophf 2017-04-28 14:05:25 +03:00
parent 77ffd3004d
commit 33fa5693ed

View File

@ -226,7 +226,7 @@ function filterStylesInternal({
function saveStyle(style) {
const id = Number(style.id) >= 0 ? Number(style.id) : null;
const id = Number(style.id) || null;
const reason = style.reason;
const notify = style.notify !== false;
const styleDigest = style.styleDigest;