Skip to content

Commit fd5354a

Browse files
authored
fix broken ui test (#9629)
Signed-off-by: Alexander Onnikov <[email protected]>
1 parent 4f2d510 commit fd5354a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/ui/src/popups.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ export function showPopup (
104104
const pos = popups.findIndex((p) => (p as CompAndProps).id === id && p.type === 'popup')
105105
if (pos !== -1) {
106106
popups.splice(pos, 1)
107-
void onClose?.(undefined)
108107
}
109108
return popups
110109
})

plugins/recorder-resources/src/recording.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,10 @@ function showRecordingPopup (): void {
9696
}
9797

9898
export function closeRecordingPopup (): void {
99-
const popup = get(recordingPopup)
100-
popup?.close()
99+
recordingPopup.update((popup) => {
100+
popup?.close()
101+
return null
102+
})
101103
}
102104

103105
export async function startRecording (): Promise<void> {

0 commit comments

Comments
 (0)