Fixed StackOverflowException

This commit is contained in:
Fergal Moran
2018-05-13 03:38:42 +01:00
parent 96a5d2f470
commit 6e46e33e19
2 changed files with 12 additions and 12 deletions

View File

@@ -92,16 +92,16 @@ export class ProfileComponent extends BasePageComponent
const searchBox = document.getElementById('slug-box');
const typeahead = fromEvent(searchBox, 'input').pipe(
map((e: KeyboardEvent) => e.target.value),
filter((text) => text.length > 2),
debounceTime(10),
distinctUntilChanged(),
switchMap((v) => this.onSlugChanged(v))
);
typeahead.subscribe((data) => {
// Handle the data from the API
});
// const typeahead = fromEvent(searchBox, 'input').pipe(
// map((e: KeyboardEvent) => e.target.value),
// filter((text) => text.length > 2),
// debounceTime(10),
// distinctUntilChanged(),
// switchMap((v) => this.onSlugChanged(v))
// );
// typeahead.subscribe((data) => {
// // Handle the data from the API
// });
}
private _parseImageData(file: File) {
@@ -113,7 +113,7 @@ export class ProfileComponent extends BasePageComponent
};
myReader.readAsDataURL(file);
}
onSlugChanged(slug: string) : boolean {
onSlugChanged(slug: string) {
this._service.checkSlug(slug).subscribe((v) => {
console.log('profile.component.ts', 'onSlugChanged', v);
if (v) this.slugError = '';

View File

@@ -17,6 +17,6 @@ namespace PodNoms.Api.Models.ViewModels {
public bool Processed { get; set; }
public string ProcessingPayload { get; set; }
public int PodcastId { get; set; }
public PodcastViewModel Podcast { get; set; }
// public PodcastViewModel Podcast { get; set; }
}
}