Skip to content

Commit

Permalink
yarn prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mwangggg committed Oct 31, 2023
1 parent 03d4c58 commit 38a4633
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/app/Topology/Entity/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,13 @@ export const useResources = <R = ResourceTypes,>(
)
.subscribe(([targetNode, event]) => {
const extractedUrl = getConnectUrlFromEvent(event);
const extractedJvmId = getJvmIdFromEvent(event)
const extractedJvmId = getJvmIdFromEvent(event);
const isOwned = isOwnedResource(resourceType);
if (!isOwned || (extractedUrl && extractedUrl === targetNode.target.connectUrl) || (extractedJvmId && extractedJvmId === targetNode.target.jvmId)) {
if (
!isOwned ||
(extractedUrl && extractedUrl === targetNode.target.connectUrl) ||
(extractedJvmId && extractedJvmId === targetNode.target.jvmId)
) {
setLoading(true);
setResources((old) => {
// Avoid accessing state directly, which
Expand Down

0 comments on commit 38a4633

Please sign in to comment.