Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
mwangggg committed Oct 12, 2023
1 parent 1393e2d commit c259066
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
12 changes: 4 additions & 8 deletions src/app/Shared/Services/Api.service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -529,14 +529,10 @@ export class ApiService {
}

postRecordingMetadataFromPath(jvmId: string, recordingName: string, labels: RecordingLabel[]): Observable<boolean> {
return this.sendRequest(
'beta',
`fs/recordings/${jvmId}/${encodeURIComponent(recordingName)}/metadata/labels`,
{
method: 'POST',
body: this.transformAndStringifyToRawLabels(labels),
},
).pipe(
return this.sendRequest('beta', `fs/recordings/${jvmId}/${encodeURIComponent(recordingName)}/metadata/labels`, {
method: 'POST',
body: this.transformAndStringifyToRawLabels(labels),
}).pipe(
map((resp) => resp.ok),
first(),
);
Expand Down
1 change: 0 additions & 1 deletion src/app/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* limitations under the License.
*/

import { UPLOADS_SUBDIRECTORY } from '@app/Shared/Services/api.types';
import { ISortBy, SortByDirection } from '@patternfly/react-table';
import _ from 'lodash';
import { useHistory } from 'react-router-dom';
Expand Down

0 comments on commit c259066

Please sign in to comment.