Properly look for run pid

This commit is contained in:
Dustin Brett 2025-10-24 16:48:53 -07:00
parent c637b1fa7d
commit aa30cf7e4b

View File

@ -169,12 +169,15 @@ const Run: FC<ComponentProcessProps> = ({ id }) => {
([processName]) =>
processName.toLowerCase() ===
(
resourceAliasMap[resourcePath.toLowerCase()] || resourcePath
resourceAliasMap[resourcePid.toLowerCase()] || resourcePid
).toLowerCase()
) || [];
if (pid) {
open(pid);
open(
pid,
resourcePath === resourcePid ? undefined : { url: resourcePath }
);
addRunHistoryEntry();
} else if (utilCommandMap[resource.toLowerCase()]) {
utilCommandMap[resource.toLowerCase()]();