Skip to content

Commit 701502f

Browse files
committed
- Fix: recent search panel display organisation label incorrect
1 parent a8cebc2 commit 701502f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## v5.6.0
4+
5+
- Fix: recent search panel display organisation label incorrect
6+
37
## v5.5.0
48

59
- Fix: search-api-auto-ping job "Couldn't find the binary git" error

magda-web-client/src/Components/Dataset/Search/SearchSuggestionBox.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class SearchSuggestionBox extends Component<Props & any, any> {
132132
if (data.organisation)
133133
filters.push(
134134
"from organisation " +
135-
this.createSearchOptionListTextFromArray(data.publisher)
135+
this.createSearchOptionListTextFromArray(data.organisation)
136136
);
137137
if (data.dateFrom)
138138
filters.push("from *" + getDateString(data.dateFrom) + "*");
@@ -186,7 +186,6 @@ class SearchSuggestionBox extends Component<Props & any, any> {
186186

187187
executeSearchItem(item: SearchDataType) {
188188
const searchData = { ...item.data };
189-
if (searchData.publisher) delete searchData.publisher;
190189
redirect(this.props.history, `/search`, searchData);
191190
this.setState({
192191
isMouseOver: false,

0 commit comments

Comments
 (0)