Browse Source

Typing fix.

pull/448/head
Sebastian 6 years ago
parent
commit
a7ab5f0ca3
  1. 9
      frontend/app/features/content/shared/preview-button.component.ts

9
frontend/app/features/content/shared/preview-button.component.ts

@ -59,10 +59,12 @@ export class PreviewButtonComponent extends StatefulComponent<State> implements
this.selectUrl(selectedName); this.selectUrl(selectedName);
} }
public follow(name: string) { public follow(name?: string) {
this.selectUrl(name); if (name) {
this.selectUrl(name);
this.navigateTo(name); this.navigateTo(name);
}
this.dropdown.hide(); this.dropdown.hide();
} }
@ -78,6 +80,7 @@ export class PreviewButtonComponent extends StatefulComponent<State> implements
if (selectedName === s.previewNameSelected) { if (selectedName === s.previewNameSelected) {
return s; return s;
} }
const state = { ...s }; const state = { ...s };
const keys = Object.keys(this.schema.previewUrls); const keys = Object.keys(this.schema.previewUrls);

Loading…
Cancel
Save