Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'origin/queue-overlay-deletions' into qu…
…eue-overlay-additions
  • Loading branch information
benceruleanlu committed Dec 13, 2025
commit 4a8975ad27c07b3173af6a56367e904286750cfd
21 changes: 7 additions & 14 deletions src/components/actionbar/ComfyActionbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,7 @@
:style="style"
class="flex flex-col items-stretch"
>
<Panel
ref="panelRef"
:class="panelRootClass"
:pt="{
header: { class: 'hidden' },
content: { class: docked ? 'p-0' : 'p-1' }
}"
>
<div ref="panelRef" :class="cn(panelRootClass, docked ? 'p-0' : 'p-1')">
<div class="flex flex-col">
<div class="flex items-center select-none">
<span
Expand All @@ -35,7 +28,9 @@
"
/>

<ComfyRunButton />
<Suspense @resolve="comfyRunButtonResolved">
<ComfyRunButton />
</Suspense>
<IconButton
v-tooltip.bottom="cancelJobTooltipConfig"
type="transparent"
Expand Down Expand Up @@ -74,7 +69,7 @@
</IconTextButton>
</div>
</div>
</Panel>
</div>

<div v-if="isFloating" class="flex justify-end pt-1 pr-1">
<QueueInlineProgressSummary
Expand Down Expand Up @@ -103,9 +98,7 @@ import {
} from '@vueuse/core'
import { clamp } from 'es-toolkit/compat'
import { storeToRefs } from 'pinia'
import Panel from 'primevue/panel'
import type { ComponentPublicInstance } from 'vue'
import { computed, nextTick, onMounted, ref, watch } from 'vue'
import { computed, nextTick, ref, watch } from 'vue'

import IconButton from '@/components/button/IconButton.vue'
import IconTextButton from '@/components/button/IconTextButton.vue'
Expand Down Expand Up @@ -143,7 +136,7 @@ const visible = computed(() => position.value !== 'Disabled')

const tabContainer = document.querySelector('.workflow-tabs-container')
Copy link

Copilot AI Dec 11, 2025

Choose a reason for hiding this comment

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

The variable tabContainer is queried from the DOM at the module level (line 144), which means it's evaluated when the module is first imported. This may execute before the DOM is fully rendered, potentially resulting in null. Consider moving this query inside onMounted or using a computed property to ensure the element exists when it's accessed.

Suggested change
const tabContainer = document.querySelector('.workflow-tabs-container')
const tabContainer = ref<HTMLElement | null>(null)

Copilot uses AI. Check for mistakes.
const actionbarWrapperRef = ref<HTMLElement | null>(null)
const panelRef = ref<HTMLElement | ComponentPublicInstance | null>(null)
const panelRef = ref<HTMLElement | null>(null)
const dragHandleRef = ref<HTMLElement | null>(null)
const docked = computed({
get: () => props.docked ?? false,
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.