diff --git a/lib/galaxy/web/api/history_contents.py b/lib/galaxy/web/api/history_contents.py index c583e46410d..c19fd737eb9 100644 --- a/lib/galaxy/web/api/history_contents.py +++ b/lib/galaxy/web/api/history_contents.py @@ -95,7 +95,6 @@ class HistoryContentsController( BaseAPIController, UsesHistoryDatasetAssociatio except Exception, e: return str( e ) hda = ld.library_dataset_dataset_association.to_history_dataset_association( history, add_to_history=True ) - history.add_dataset( hda ) trans.sa_session.flush() return hda.get_api_value() else: