fix 'representations' -> 'representation'

This commit is contained in:
Jakub Trllo 2025-08-28 12:12:32 +02:00
parent 3a6e993158
commit 15a3f9d29a
3 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@ class CopyFileActionPlugin(LoaderActionPlugin):
self, selection: LoaderActionSelection
) -> list[LoaderActionItem]:
repres = []
if selection.selected_type == "representations":
if selection.selected_type == "representation":
repres = selection.entities.get_representations(
selection.selected_ids
)

View file

@ -37,7 +37,7 @@ class DeliveryAction(LoaderActionPlugin):
return []
version_ids = set()
if selection.selected_type == "representations":
if selection.selected_type == "representation":
versions = selection.entities.get_representations_versions(
selection.selected_ids
)

View file

@ -33,7 +33,7 @@ class OpenFileAction(LoaderActionPlugin):
self, selection: LoaderActionSelection
) -> list[LoaderActionItem]:
repres = []
if selection.selected_type == "representations":
if selection.selected_type == "representation":
repres = selection.entities.get_representations(
selection.selected_ids
)