Skip to content

Delete connection logic - #32

Merged
ravjotbrar merged 2 commits into
mainfrom
delete-connection
Oct 1, 2025
Merged

ravjotbrar merged 2 commits into
mainfrom
delete-connection

Conversation

@ravjotbrar

Copy link
Copy Markdown
Collaborator

No description provided.

select(deleteConnection),
tap(({ payload: { connectionId } }) => {
try {
const currentConnections = R.pipe(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it time to extract this into a separate function? there is at least one more place where we do that. can do later though but ideally having a // todo

},
deleteConnection: (state, action) => {
const { connectionId } = action.payload
if(state.connections[connectionId]) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can do just return R.dissocPath(["connections", connectionId], state)

and there is extra newline below

@ravjotbrar
ravjotbrar merged commit a9dcbe3 into main Oct 1, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants