Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Commit

Permalink
Use IFilter instead of Filter to avoid build error
Browse files Browse the repository at this point in the history
  • Loading branch information
hangy committed May 10, 2021
1 parent d6cc827 commit 7f5cc70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/home/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { MessageCard, MessageCardSeverity } from "azure-devops-ui/MessageCard";
import { Page } from "azure-devops-ui/Page";
import { Tab, TabBar } from "azure-devops-ui/Tabs";
import { KeywordFilterBarItem } from "azure-devops-ui/TextFilterBarItem";
import { Filter } from "azure-devops-ui/Utilities/Filter";
import { Filter, IFilter } from "azure-devops-ui/Utilities/Filter";
import * as React from "react";
import { connect } from "react-redux";
import CreatePanel from "../../components/create/panel";
Expand Down Expand Up @@ -41,13 +41,13 @@ const Actions = {
};

class HomePage extends React.Component<IHomePageProps & typeof Actions> {
filter: Filter;
filter: IFilter;
filterToggled = new ObservableValue<boolean>(false);

constructor(props: IHomePageProps & typeof Actions) {
super(props);

this.filter = new Filter();
this.filter = new Filter() as IFilter;
this.filter.subscribe((state) => {
props.filter(state["keyword"] && state["keyword"]!.value);
});
Expand Down

0 comments on commit 7f5cc70

Please sign in to comment.