Skip to content

Commit 4798423

Browse files
committed
fix: type errors
1 parent c066f91 commit 4798423

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

apps/desktop/src/routes/(window-chrome)/new-main/TargetCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export default function TargetCard(props: TargetCardProps) {
194194
}
195195

196196
function escapeRegExp(value: string) {
197-
return value.replace(/[\^$*+?.()|[\]{}\\-]/g, "\\$&");
197+
return value.replace(/[\^$*+?.()|[\]{}-]/g, "\\$&");
198198
}
199199

200200
export function TargetCardSkeleton(props: { class?: string }) {

apps/desktop/src/routes/target-select-overlay.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,7 @@ function Inner() {
9191
const hoveredWindow = targetUnderCursor.window;
9292
if (hoveredWindow) return hoveredWindow;
9393
if (rawOptions.captureTarget.variant === "window") {
94-
const selected =
95-
typeof selectedWindow.data === "function"
96-
? selectedWindow.data()
97-
: selectedWindow.data;
94+
const selected = selectedWindow.data;
9895
if (selected) return selected;
9996
}
10097
return hoveredWindow;

0 commit comments

Comments
 (0)