Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions src/renderer/extensions/vueNodes/components/NodeSlots.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
>
<InputSlot
v-for="(input, index) in filteredInputs"
:key="`input-${index}`"
:key="`input-${input.name}`"
:slot-data="input"
:node-type="nodeData?.type || ''"
:node-id="nodeData?.id != null ? String(nodeData.id) : ''"
Expand All @@ -23,7 +23,7 @@
>
<OutputSlot
v-for="(output, index) in nodeData.outputs"
:key="`output-${index}`"
:key="`output-${output.name}`"
:slot-data="output"
:node-type="nodeData?.type || ''"
:node-id="nodeData?.id != null ? String(nodeData.id) : ''"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,14 @@ export function useSlotElementTracking(options: {
// Register slot
const slotKey = getSlotKey(nodeId, index, type === 'input')

// Defensive cleanup: remove stale entry if it exists with different element
// This handles edge cases where Vue component reuse prevents proper unmount
const existingEntry = node.slots.get(slotKey)
if (existingEntry && existingEntry.el !== el) {
delete existingEntry.el.dataset.slotKey
layoutStore.deleteSlotLayout(slotKey)
}

el.dataset.slotKey = slotKey
node.slots.set(slotKey, { el, index, type })

Expand Down
2 changes: 1 addition & 1 deletion src/stores/firebaseAuthStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export const useFirebaseAuthStore = defineStore('firebaseAuth', () => {
}

const createCustomer = async (): Promise<CreateCustomerResponse> => {
const authHeader = await getFirebaseAuthHeader()
const authHeader = await getAuthHeader()
if (!authHeader) {
throw new FirebaseAuthStoreError(t('toastMessages.userNotAuthenticated'))
}
Expand Down