mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
use 'get_selected_version_entities' in delete old versions
This commit is contained in:
parent
eedd982a84
commit
6d1d1e01d4
1 changed files with 1 additions and 6 deletions
|
|
@ -42,12 +42,7 @@ class DeleteOldVersions(LoaderActionPlugin):
|
|||
if self.host_name is not None:
|
||||
return []
|
||||
|
||||
versions = None
|
||||
if selection.selected_type == LoaderSelectedType.version:
|
||||
versions = selection.entities.get_versions(
|
||||
selection.selected_ids
|
||||
)
|
||||
|
||||
versions = selection.get_selected_version_entities()
|
||||
if not versions:
|
||||
return []
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue