Skip to content

Commit 6aaebe7

Browse files
authored
Merge pull request #2874 from devtron-labs/fix/issues-modal
fix: issues modal not opening on click
2 parents 2fca72f + 3aeff57 commit 6aaebe7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/app/details/appDetails/IssuesCard.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import React, { useState, useEffect } from 'react'
17+
import React, { useState, useEffect, SyntheticEvent } from 'react'
1818
import Tippy from '@tippyjs/react'
1919
import {
2020
DeploymentAppTypes,
@@ -27,6 +27,7 @@ import {
2727
ToastManager,
2828
ForceDeleteConfirmationModal,
2929
LoadingCard,
30+
stopPropagation,
3031
} from '@devtron-labs/devtron-fe-common-lib'
3132
import { ReactComponent as ICHelpOutline } from '../../../../assets/icons/ic-help-outline.svg'
3233
import { ReactComponent as ErrorIcon } from '../../../../assets/icons/ic-warning.svg'
@@ -50,7 +51,8 @@ const IssuesCard = ({ cardLoading, setErrorsList, toggleIssuesModal, setDetailed
5051
const appDetails = IndexStore.getAppDetails()
5152
const conditions = appDetails?.resourceTree?.conditions || []
5253

53-
const showIssuesListingModal = () => {
54+
const showIssuesListingModal = (e?: SyntheticEvent) => {
55+
stopPropagation(e)
5456
toggleIssuesModal(true)
5557
}
5658

0 commit comments

Comments
 (0)