mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix(ui): disable event subscription
it is not fully baked just yet
This commit is contained in:
@@ -114,13 +114,16 @@ export const socketMiddleware = () => {
|
||||
const oldSessionId = getState().system.sessionId;
|
||||
const subscribedNodeIds = getState().system.subscribedNodeIds;
|
||||
|
||||
const shouldHandleEvent = (id: string): boolean => {
|
||||
if (subscribedNodeIds.length === 1 && subscribedNodeIds[0] === '*') {
|
||||
return true;
|
||||
}
|
||||
// temp disable this
|
||||
const shouldHandleEvent = (id: string): boolean => true;
|
||||
|
||||
return subscribedNodeIds.includes(id);
|
||||
};
|
||||
// const shouldHandleEvent = (id: string): boolean => {
|
||||
// if (subscribedNodeIds.length === 1 && subscribedNodeIds[0] === '*') {
|
||||
// return true;
|
||||
// }
|
||||
|
||||
// return subscribedNodeIds.includes(id);
|
||||
// };
|
||||
|
||||
if (oldSessionId) {
|
||||
// Unsubscribe when invocations complete
|
||||
|
||||
Reference in New Issue
Block a user