Skip to content

Commit

Permalink
Removing more unncesary code
Browse files Browse the repository at this point in the history
  • Loading branch information
jespino committed Jan 10, 2025
1 parent 4eea4f4 commit 0b81173
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions webapp/src/redux.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export const BotsHandler = manifest.id + '_bots';
export async function setupRedux(registry: any, store: WebappStore, postEventListener: PostEventListener) {

Check failure on line 19 in webapp/src/redux.tsx

View workflow job for this annotation

GitHub Actions / plugin-ci / lint

'postEventListener' is defined but never used
const reducer = combineReducers({
callsPostButtonClickedTranscription,
aiStatusUpdateClicked,
bots,
botSelector,
botsLoaderHook,
Expand All @@ -32,10 +31,7 @@ export async function setupRedux(registry: any, store: WebappStore, postEventLis
type: CallsClickHandler as any,
handler: makeCallsPostButtonClickedHandler(store.dispatch),
});
store.dispatch({
type: PlaybooksRunStatusUpdateClickHandler as any,
handler: makePlaybookRunStatusUpdateHandler(store.dispatch, postEventListener),
});

store.dispatch({
type: AIBotSelectorComponent as any,
component: DropdownBotSelector,
Expand Down Expand Up @@ -75,15 +71,6 @@ function callsPostButtonClickedTranscription(state = false, action: any) {
}
}

function aiStatusUpdateClicked(state = false, action: any) {
switch (action.type) {
case PlaybooksRunStatusUpdateClickHandler:
return action.handler || false;
default:
return state;
}
}

function botSelector(state = false, action: any) {
switch (action.type) {
case AIBotSelectorComponent:
Expand Down

0 comments on commit 0b81173

Please sign in to comment.