projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refs #14801-api-resonse-is-not-complete
[arvados-workbench2.git]
/
src
/
store
/
auth
/
auth-reducer.ts
diff --git
a/src/store/auth/auth-reducer.ts
b/src/store/auth/auth-reducer.ts
index 1edcedee68b6e2296cee4028ce655b9b0736a6ff..a2822f100c37b6421b465f3b7a2312d2c5b00362 100644
(file)
--- a/
src/store/auth/auth-reducer.ts
+++ b/
src/store/auth/auth-reducer.ts
@@
-61,6
+61,13
@@
export const authReducer = (services: ServiceRepository) => (state = initialStat
session => session.clusterId !== clusterId
)};
},
session => session.clusterId !== clusterId
)};
},
+ UPDATE_SESSION: (session: Session) => {
+ return {
+ ...state,
+ sessions: state.sessions.map(
+ s => s.clusterId === session.clusterId ? session : s
+ )};
+ },
default: () => state
});
};
default: () => state
});
};