fix poll exception on creation

This commit is contained in:
Nicolas Constant 2023-08-19 21:33:43 -04:00
parent f4c87df078
commit 024042959e
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
1 changed files with 2 additions and 0 deletions

View File

@ -79,6 +79,8 @@ export class PollEditorComponent implements OnInit {
}
private loadPollParameters(poll: Poll) {
if(!this.oldPoll) return;
const isMulti = poll.multiple;
this.entries.length = 0;