If `duration` is invalid set it to min instead of default

pull/5331/head
GogoVega 2025-10-27 15:57:44 +01:00
parent c6135cebcd
commit 55ddf2575c
No known key found for this signature in database
GPG Key ID: E1E048B63AC5AC2B
1 changed files with 1 additions and 1 deletions

View File

@ -4419,7 +4419,7 @@ RED.view = (function() {
if (d.status.duration) {
duration = parseInt(d.status.duration, 10);
if (Number.isNaN(duration) || duration < MIN_STATUS_DURATION) {
duration = DEFAULT_STATUS_DURATION;
duration = MIN_STATUS_DURATION;
}
}
if (d.status.ephemeral === true) {