Skip to content

Commit

Permalink
Fixed infinite search issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dkildar committed Jun 18, 2024
1 parent 93dd643 commit de133db
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 de133db

Please sign in to comment.