|
@@ -85,11 +85,6 @@ class SearchPage extends React.Component {
|
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
this.changeURL(keyword);
|
|
this.changeURL(keyword);
|
|
|
if (res.data.length > 0) {
|
|
if (res.data.length > 0) {
|
|
|
- // TODO: remove creating dummy snippet lines when the data with snippet is abole to be retrieved
|
|
|
|
|
- res.data.forEach((page) => {
|
|
|
|
|
- page.snippet = `dummy snippet dummpy snippet dummpy snippet dummpy snippet dummpy snippet
|
|
|
|
|
- dummpy snippet dummpy snippet dummpy snippet dummpy snippet`;
|
|
|
|
|
- });
|
|
|
|
|
this.setState({
|
|
this.setState({
|
|
|
searchedKeyword: keyword,
|
|
searchedKeyword: keyword,
|
|
|
searchedPages: res.data,
|
|
searchedPages: res.data,
|