Skip to content

Commit

Permalink
fix: timeout pushed with debug value (#26731)
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra authored Dec 6, 2024
1 parent fdc6404 commit d2efffc
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
.eslintrc.js
jest.config.ts
node_modules
rust
livestream
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const globals = {
}

module.exports = {
ignorePatterns: ['node_modules', 'plugin-server'],
ignorePatterns: ['node_modules', 'plugin-server', 'rust', 'livestream'],
env,
settings: {
react: {
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,4 @@ pyrightconfig.json
.temporal-worker-settings
temp_test_run_data.json
.temp-deepeval-cache.json
.eslintcache
10 changes: 7 additions & 3 deletions frontend/src/scenes/session-recordings/player/PlayerUpNext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,13 @@ export function PlayerUpNext({ playlistLogic }: PlayerUpNextProps): JSX.Element
if (endReached && nextSessionRecording?.id) {
setAnimate(true)
setPlayNextAnimationInterrupted(false)
timeoutRef.current = setTimeout(() => {
goToRecording(true)
}, 30000) // NOTE: Keep in sync with SCSS
timeoutRef.current = setTimeout(
() => {
goToRecording(true)
},
// NOTE: Keep in sync with SCSS
3000
)
}

return () => clearTimeout(timeoutRef.current)
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"prettier": "prettier --write \"./**/*.{js,mjs,ts,tsx,json,yaml,yml,css,scss}\"",
"prettier:check": "prettier --check \"frontend/**/*.{js,mjs,ts,tsx,json,yaml,yml,css,scss}\"",
"typescript:check": "tsc --noEmit && echo \"No errors reported by tsc.\"",
"lint:js": "eslint frontend/src cypress",
"lint:js": "eslint --cache frontend/src cypress",
"lint:css": "stylelint \"frontend/**/*.{css,scss}\"",
"format:backend": "ruff .",
"format:frontend": "pnpm lint:js --fix && pnpm lint:css --fix && pnpm prettier",
Expand Down Expand Up @@ -349,7 +349,7 @@
"prettier --write"
],
"frontend/src/**/*.{js,jsx,mjs,ts,tsx}": [
"eslint -c .eslintrc.js --fix",
"eslint --cache -c .eslintrc.js --fix",
"prettier --write"
],
"frontend/*.mjs": [
Expand Down

0 comments on commit d2efffc

Please sign in to comment.