From 8bca7e2aa2c32ba3a8d55ff6626ff706dd4b4fc7 Mon Sep 17 00:00:00 2001 From: Daniel Abrao Date: Fri, 12 Apr 2024 08:13:10 -0300 Subject: [PATCH] Apply eslint/prettier fixes --- .../listeners/socketio/socketQueueItemStatusChanged.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/socketio/socketQueueItemStatusChanged.ts b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/socketio/socketQueueItemStatusChanged.ts index b3438b7804..42d8dc3c88 100644 --- a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/socketio/socketQueueItemStatusChanged.ts +++ b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/socketio/socketQueueItemStatusChanged.ts @@ -13,7 +13,7 @@ const log = logger('socketio'); * @param {number} activeQueueLength - The number of active items in the queue. */ const updatePageTitle = (activeQueueLength: number) => { - const baseString: string = document.title.replace(/\(\d+\)/ , ''); + const baseString: string = document.title.replace(/\(\d+\) /, ''); document.title = activeQueueLength > 0 ? `(${activeQueueLength}) ${baseString}` : baseString; }; @@ -38,7 +38,7 @@ export const addSocketQueueItemStatusChangedEventListener = (startAppListening: const { queue_item, batch_status, queue_status } = action.payload.data; // Keep track of the active queue length by summing up pending and in_progress count - const activeQueueLength: number = (queue_status.pending + queue_status.in_progress) || 0; + const activeQueueLength: number = queue_status.pending + queue_status.in_progress || 0; log.debug(action.payload, `Queue item ${queue_item.item_id} status updated: ${queue_item.status}`);