mirror of
https://github.com/vrc-get/vrc-get.git
synced 2026-06-21 09:58:08 +00:00
Filter already-added packages from template editor suggestions
Agent-Logs-Url: https://github.com/vrc-get/vrc-get/sessions/df9f3421-a51d-44c1-b81b-bab02f9f7d30 Co-authored-by: anatawa12 <22656849+anatawa12@users.noreply.github.com>
This commit is contained in:
parent
490190606c
commit
38ac981d22
2 changed files with 8 additions and 1 deletions
|
|
@ -31,6 +31,7 @@ The format is based on [Keep a Changelog].
|
|||
### Removed
|
||||
|
||||
### Fixed
|
||||
- Already-added packages are now excluded from the package name suggestions in the Template Editor `#2828`
|
||||
- Fixed an issue where the progress bar flickered and did not display correct progress in environments using WebKit as the renderer. [`#2641`](https://github.com/vrc-get/vrc-get/pull/2641)
|
||||
- Fails to import UnityPackages with files in `Packages` directory `#2679`
|
||||
- null as vpmDependencies value is not allowed `#2709`
|
||||
|
|
|
|||
|
|
@ -910,7 +910,13 @@ function TemplateEditor({
|
|||
<Autocomplete
|
||||
value={value.name}
|
||||
className={"grow"}
|
||||
options={packageCandidates}
|
||||
options={packageCandidates.filter(
|
||||
(c) =>
|
||||
c.value === value.name ||
|
||||
!packagesListContext.value.some(
|
||||
(p) => p.name === c.value,
|
||||
),
|
||||
)}
|
||||
onChange={(value) =>
|
||||
packagesListContext.update(id, (old) => ({
|
||||
...old,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue