fix type comparison

This commit is contained in:
Jakub Trllo 2025-08-22 11:46:49 +02:00
parent 8bdfe806e0
commit 2be5d3b72b

View file

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