Skip to content

Commit 10cee9d

Browse files
committed
Fix else branch.
1 parent d62f219 commit 10cee9d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/components/core/compute/startCompute.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,8 @@ export class FreeComputeStartHandler extends CommandHandler {
478478
validUntil = env.free.maxJobDuration
479479
? Math.min(task.validUntil, env.free.maxJobDuration)
480480
: task.validUntil
481+
} else {
482+
if (env.free.maxJobDuration) validUntil = env.free.maxJobDuration
481483
}
482484
} catch (e) {
483485
console.error(e)

0 commit comments

Comments
 (0)