feat: update based on recording state

This commit is contained in:
Rohit
2025-02-01 11:11:05 +05:30
parent 0b1966a9e0
commit 03ec2a5394

View File

@@ -161,6 +161,8 @@ export const RecordingsTable = ({
const {
notify,
robot,
recordings,
setRecordings,
browserId,
setBrowserId,
@@ -260,10 +262,10 @@ export const RecordingsTable = ({
}
useEffect(() => {
if (rows.length === 0) {
if (recordings.length >= 0) {
fetchRecordings();
}
}, [fetchRecordings]);
}, [recordings, fetchRecordings]);
function useDebounce<T>(value: T, delay: number): T {
const [debouncedValue, setDebouncedValue] = React.useState<T>(value);