mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
new poll from local form of the pollService
This commit is contained in:
parent
cb971a5421
commit
d68ba7ac2a
@ -644,7 +644,6 @@ export class PollService implements Resolve<Poll> {
|
||||
|
||||
/**
|
||||
* @description convert to API version 1 data transition object
|
||||
* @param form
|
||||
*/
|
||||
newPollFromForm(): Poll {
|
||||
let form = this.form;
|
||||
|
@ -20,7 +20,7 @@ export class StepFourComponent implements OnInit {
|
||||
ngOnInit(): void {}
|
||||
|
||||
createPoll() {
|
||||
let apiData = this.pollService.newPollFromForm(this.pollService._poll);
|
||||
let apiData = this.pollService.newPollFromForm();
|
||||
this.apiService.createPoll(apiData);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user