diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e3b988669..2a84cbe2b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### Fixes + +- [#2318: Only show Clear search link if there's a search](https://github.com/alphagov/govuk-prototype-kit/pull/2318) + ## 13.13.0 ### New features diff --git a/lib/nunjucks/views/manage-prototype/plugins.njk b/lib/nunjucks/views/manage-prototype/plugins.njk index 8bdc981aa5..1cb2129512 100644 --- a/lib/nunjucks/views/manage-prototype/plugins.njk +++ b/lib/nunjucks/views/manage-prototype/plugins.njk @@ -69,12 +69,14 @@ attributes: { id: "search-button", formaction: "#" } }) }} - Clear search + {% if search %} + Clear search + {% endif %} -