mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 14:00:37 +00:00
LibraryComponent.restore() did not check that the component belongs to the current file's library. Called on a deleted component of a connected shared library, it restored that component and saved the change to the library file, while remove(), annotation and duplicate() reject such handles with a validation error. restore() now rejects them the same way: "Can only restore components from the current file's library". Closes #12607