mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
chore(ui): lint
This commit is contained in:
parent
99e6bb48ba
commit
779c902402
@ -24,7 +24,9 @@ export default function SettingsClearIntermediates() {
|
|||||||
useClearIntermediatesMutation();
|
useClearIntermediatesMutation();
|
||||||
|
|
||||||
const { data: queueStatus } = useGetQueueStatusQuery();
|
const { data: queueStatus } = useGetQueueStatusQuery();
|
||||||
const hasPendingItems = queueStatus && (queueStatus.queue.in_progress > 0 || queueStatus.queue.pending > 0);
|
const hasPendingItems =
|
||||||
|
queueStatus &&
|
||||||
|
(queueStatus.queue.in_progress > 0 || queueStatus.queue.pending > 0);
|
||||||
|
|
||||||
const handleClickClearIntermediates = useCallback(() => {
|
const handleClickClearIntermediates = useCallback(() => {
|
||||||
if (hasPendingItems) {
|
if (hasPendingItems) {
|
||||||
|
Loading…
Reference in New Issue
Block a user