Skip to content

Commit a4fd93e

Browse files
committed
fix
1 parent 1a30afd commit a4fd93e

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "remix-development-tools",
33
"description": "Remix development tools - a set of tools for developing/debugging Remix.run apps",
44
"author": "Alem Tuzlak",
5-
"version": "4.0.2",
5+
"version": "4.0.3",
66
"license": "MIT",
77
"keywords": [
88
"remix",

src/client/hooks/useOpenElementSource.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,12 @@ const useOpenElementSource = () => {
5151
const source = fiberNode?._debugOwner?._debugSource ?? fiberNode?._debugSource;
5252
const line = source?.fileName?.startsWith("/") ? originalSource?.lineNumber : source?.lineNumber;
5353
const fileName = source?.fileName?.startsWith("/") ? originalSource?.fileName : source?.fileName;
54-
return sendJsonMessage({
55-
type: "open-source",
56-
data: { source: fileName, line, column: 0 },
57-
});
54+
if(fileName && line){
55+
return sendJsonMessage({
56+
type: "open-source",
57+
data: { source: fileName, line, column: 0 },
58+
});
59+
}
5860
}
5961
}
6062
});

0 commit comments

Comments
 (0)