Skip to content

Commit

Permalink
Merge pull request #1618 from ecency/bugfix/infinite-search
Browse files Browse the repository at this point in the history
Fixed infinite search issue
  • Loading branch information
feruzm authored Jun 18, 2024
2 parents 93dd643 + de133db commit fdcd701
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/common/components/similar-entries/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ import isEqual from "react-fast-compare";
import defaults from "../../constants/defaults.json";

import { catchPostImage, setProxyBase } from "@ecency/render-helper";

setProxyBase(defaults.imageServer);

import { Global } from "../../store/global/types";
import { Entry } from "../../store/entries/types";

Expand All @@ -24,6 +21,8 @@ import { dateToFullRelative } from "../../helper/parse-date";
import isCommunity from "../../helper/is-community";
import "./_index.scss";

setProxyBase(defaults.imageServer);

interface Props {
history: History;
location: Location;
Expand Down Expand Up @@ -109,7 +108,7 @@ export class SimilarEntries extends BaseComponent<Props, State> {
});
if (entries.length < limit) {
this.setState({ retry: retry - 1 });
this.fetch();
// this.fetch();
} else {
entries = entries.slice(0, limit);
}
Expand Down

0 comments on commit fdcd701

Please sign in to comment.