Fix undefined userid in new poll

pull/1/head
yflory 8 years ago
parent cb43eb9ca1
commit 5cd7d8ec84

@ -691,7 +691,7 @@ define([
.on('ready', function (info) {
Cryptpad.getPadAttribute('userid', function (e, userid) {
if (e) { console.error(e); }
if (userid === null) { userid = Render.coluid(); }
if (!userid) { userid = Render.coluid(); }
APP.userid = userid;
Cryptpad.setPadAttribute('userid', userid, function (e) {
ready(info, userid, readOnly);

Loading…
Cancel
Save