@memberjunction/ng-file-storage 6.3.0-edge.0 → 6.3.0-edge.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import { Component, Input, Output, EventEmitter, ChangeDetectorRef, inject } from '@angular/core';
2
2
  import { GraphQLDataProvider, GraphQLFileStorageClient } from '@memberjunction/graphql-dataprovider';
3
3
  import { FileStorageEngineBase } from '@memberjunction/core-entities';
4
- import { UUIDsEqual } from '@memberjunction/global';
4
+ import { UUIDsEqual, TrimChars } from '@memberjunction/global';
5
5
  import { MJNotificationService } from '@memberjunction/ng-notifications';
6
6
  import * as i0 from "@angular/core";
7
7
  import * as i1 from "@angular/common";
@@ -2879,7 +2879,7 @@ export class FileGridComponent {
2879
2879
  try {
2880
2880
  // Construct source path and normalize it
2881
2881
  const rawSourcePath = this.constructItemPath(this.ItemToCopyToProvider);
2882
- const sourcePath = rawSourcePath.replace(/^\/+|\/+$/g, '').replace(/\/+/g, '/');
2882
+ const sourcePath = TrimChars(rawSourcePath, '/').replace(/\/+/g, '/');
2883
2883
  console.log('[FileGrid] Cross-account copy sourcePath:', { raw: rawSourcePath, normalized: sourcePath });
2884
2884
  // Copy to each selected account
2885
2885
  for (let i = 0; i < selectedAccounts.length; i++) {