Skip to content

Commit

Permalink
Fix a leftover argument to api() (#30405)
Browse files Browse the repository at this point in the history
  • Loading branch information
renchap committed May 24, 2024
1 parent b6fd14f commit 8ea2726
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const mapStateToProps = (state, { columnId }) => {
return {
settings: columns.get(index).get('params'),
onLoad (value) {
return api(() => state).get('/api/v2/search', { params: { q: value, type: 'hashtags' } }).then(response => {
return api().get('/api/v2/search', { params: { q: value, type: 'hashtags' } }).then(response => {
return (response.data.hashtags || []).map((tag) => {
return { value: tag.name, label: `#${tag.name}` };
});
Expand Down

0 comments on commit 8ea2726

Please sign in to comment.