Components/create-edit-modal: change new show variable type
This commit is contained in:
parent
92360fdad9
commit
b52a8af0bf
1 changed files with 4 additions and 2 deletions
|
|
@ -49,12 +49,14 @@ export class CreateEditModalComponent {
|
|||
}
|
||||
|
||||
protected formSubmitted(form: FormGroup) {
|
||||
let show: {} = {
|
||||
let show: Show = {
|
||||
title: form.get("title")?.value,
|
||||
date: form.get("date")?.value,
|
||||
seasons: form.get("seasons")?.value,
|
||||
episodes: form.get("episodes")?.value,
|
||||
description: form.get("description")?.value
|
||||
description: form.get("description")?.value,
|
||||
//TODO: Allow user to specify genres
|
||||
genres: []
|
||||
}
|
||||
let newId: string;
|
||||
this.showsService.sendShow(show).subscribe({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue