Skip to content

Commit

Permalink
"Follow story" button does nothing (#1048)
Browse files Browse the repository at this point in the history
* call function saveMyTopic

* changes after review
  • Loading branch information
dzonidoo authored Aug 21, 2024
1 parent 45e1d66 commit 613959a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/search/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export function saveMyTopic(searchParams: any) {
export function followStory(item: any, type: any) {
const slugline = get(item, 'slugline');

saveMyTopic({
return saveMyTopic({
label: slugline,
query: `slugline:"${slugline}"`,
topic_type: type,
Expand Down
2 changes: 1 addition & 1 deletion assets/wire/components/WireApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ const mapStateToProps = (state: any) => ({
});

const mapDispatchToProps = (dispatch: any) => ({
followStory: (item: any) => followStory(item, 'wire'),
followStory: (item: any) => dispatch(followStory(item, 'wire')),
fetchItems: () => dispatch(fetchItems()),
toggleNews: () => {
dispatch(toggleNews());
Expand Down

0 comments on commit 613959a

Please sign in to comment.