Skip to content

Commit

Permalink
Fixed non-closing list of APIs dropdown widget (#2450)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsorohova authored Apr 3, 2024
1 parent 15b7735 commit 36e8929
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/admin/media/mediaModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export class MediaModal extends React.Component<MediaModalProps, MediaModalState
}

deleteMedia = async (): Promise<void> => {
// TODO: check if can be replaced with map loop instead. for loop is used because BE is not deleting it properly
for (const file of this.state.selectedFiles) {
await this.mediaService.deleteMedia(file);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
<!-- ko foreach: { data: apis, as: 'item' } -->
<div class="menu menu-vertical" role="list">
<a href="#" role="listitem" class="nav-link text-truncate" data-dismiss
data-bind="attr: { href: $component.getReferenceUrl(item) }, css: { 'nav-link-active': $component.selectedApiName() === item.name }">
data-bind="attr: { href: $component.getReferenceUrl(item) }, css: { 'nav-link-active': $component.selectedApiName() === item.name }, activate: $component.closeDropdown">
<span data-bind="text: item.displayName"></span>
<!-- ko if: item.type === 'soap' -->
<span class="badge badge-soap">SOAP</span>
Expand Down

0 comments on commit 36e8929

Please sign in to comment.