Skip to content

Commit

Permalink
fix: encode search when querying features (#4689)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg authored Oct 2, 2024
1 parent b4b48b7 commit 7c746f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/common/stores/feature-list-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ const controller = {
},
searchFeatures: _.throttle(
(search, environmentId, projectId, filter, pageSize) => {
store.search = search
store.search = encodeURIComponent(search)
controller.getFeatures(
projectId,
environmentId,
Expand Down Expand Up @@ -1021,7 +1021,7 @@ store.dispatcherIndex = Dispatcher.register(store, (payload) => {
break
}
case Actions.GET_FLAGS:
store.search = action.search || ''
store.search = encodeURIComponent(action.search || '')
if (action.sort) {
store.sort = action.sort
}
Expand Down

0 comments on commit 7c746f4

Please sign in to comment.