Skip to content

Conversation

csehatt741
Copy link
Contributor

Summary

A new feature was implemented to prevent duplicate node fields added to the form via drag and drop.

  • dnd-hooks.ts updates:
    • a new custom hook was added, useNodeFieldElementExists, to check if a node field has already been added to the form
    • canDrop condition was updated for node fields in useFormElementDnd to check if a node field has already been added to the form

Related Issues / Discussions

https://discord.com/channels/1020123559063990373/1149513722688180304/1409425515764518923

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

@github-actions github-actions bot added the frontend PRs that change frontend files label Aug 25, 2025
Copy link
Collaborator

@psychedelicious psychedelicious left a comment

Choose a reason for hiding this comment

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

Thanks!

@psychedelicious psychedelicious enabled auto-merge (rebase) August 26, 2025 01:29
@psychedelicious psychedelicious force-pushed the feat/same-field-multiple-times-added-to-form branch from 283386f to cf54bb6 Compare August 26, 2025 01:29
@psychedelicious psychedelicious force-pushed the feat/same-field-multiple-times-added-to-form branch from cf54bb6 to 310057b Compare August 26, 2025 01:36
@psychedelicious psychedelicious merged commit ec5043a into invoke-ai:main Aug 26, 2025
13 checks passed
@csehatt741 csehatt741 deleted the feat/same-field-multiple-times-added-to-form branch October 17, 2025 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend PRs that change frontend files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants