You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by oe...@apache.org on 2026/06/10 10:21:04 UTC
(streampipes) branch 4497-prevent-duplicate-dataset-assignment-to-assets updated: Fix deselection of secondary asset links
This is an automated email from the ASF dual-hosted git repository.
SvenO3 pushed a commit to branch 4497-prevent-duplicate-dataset-assignment-to-assets
in repository https://gitbox.apache.org/repos/asf/streampipes.git
The following commit(s) were added to refs/heads/4497-prevent-duplicate-dataset-assignment-to-assets by this push:
new 31a69f2a70 Fix deselection of secondary asset links
31a69f2a70 is described below
commit 31a69f2a7064eaa0a55d8646c9f77a75059368e2
Author: Sven Oehler <oe...@web.de>
AuthorDate: Wed Jun 10 12:20:47 2026 +0200
Fix deselection of secondary asset links
---
.../shared-ui/src/lib/services/asset-configuration.service.ts | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/ui/projects/streampipes/shared-ui/src/lib/services/asset-configuration.service.ts b/ui/projects/streampipes/shared-ui/src/lib/services/asset-configuration.service.ts
index c9a1288eda..a4e6765044 100644
--- a/ui/projects/streampipes/shared-ui/src/lib/services/asset-configuration.service.ts
+++ b/ui/projects/streampipes/shared-ui/src/lib/services/asset-configuration.service.ts
@@ -55,7 +55,10 @@ export class AssetSaveService {
let assetLinksChanged = false;
if (deselectedAssets.length > 0) {
- await this.deleteLinkOnDeselectAssets(deselectedAssets, links);
+ await this.deleteLinkOnDeselectAssets(
+ deselectedAssets,
+ this.getPrimaryAssetLinks(links),
+ );
assetLinksChanged = true;
}
if (selectedAssets.length > 0) {
@@ -101,6 +104,10 @@ export class AssetSaveService {
);
}
+ private getPrimaryAssetLinks(links: AssetLink[]): AssetLink[] {
+ return links.slice(0, 1);
+ }
+
async renameLinkage(originalAssets, links): Promise<void> {
const uniqueAssetIDsDict = this.getAssetPaths(originalAssets);
const uniqueAssetIDs = Object.keys(uniqueAssetIDsDict);