From 354dfa195ed94adfbaed50334ad06c2a69d034de Mon Sep 17 00:00:00 2001 From: Tomasz Knapik <hi@tmkn.org> Date: Tue, 15 Jan 2019 10:21:42 +0000 Subject: [PATCH] Add no results found message to the listing --- opentech/static_src/src/app/src/components/Listing/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opentech/static_src/src/app/src/components/Listing/index.js b/opentech/static_src/src/app/src/components/Listing/index.js index 42a5186f6..b04e54070 100644 --- a/opentech/static_src/src/app/src/components/Listing/index.js +++ b/opentech/static_src/src/app/src/components/Listing/index.js @@ -12,6 +12,8 @@ export default class Listing extends React.Component { return <ListingItem title={"Loading..."} />; } else if (this.props.isError) { return <ListingItem title={"Something went wrong. Please try again later."} />; + } else if (this.props.items.length === 0) { + return <ListingItem title={"No results found."} />; } const listItems = []; -- GitLab