X Tutup
Skip to content

Commit bba3889

Browse files
Extremely minor improvement to sample
1 parent a83e4d8 commit bba3889

File tree

1 file changed

+1
-1
lines changed
  • samples/angular/MusicStore/wwwroot/ng-app/components/admin/album-edit

1 file changed

+1
-1
lines changed

samples/angular/MusicStore/wwwroot/ng-app/components/admin/album-edit/album-edit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export class AlbumEdit {
6969
var albumId = this.originalAlbum.AlbumId;
7070

7171
this._putJson(`/api/albums/${ albumId }/update`, this.form.value).subscribe(response => {
72-
if (response.status === 200) {
72+
if (response.ok) {
7373
this.changesSaved = true;
7474
} else {
7575
AspNet.Validation.showValidationErrors(response, this.form);

0 commit comments

Comments
 (0)
X Tutup