don't trash lists passed to timecat
This commit is contained in:
parent
a1d181d609
commit
c01b4c651c
1 changed files with 1 additions and 2 deletions
|
|
@ -2719,8 +2719,7 @@ export function stepcat(...timepats) {
|
|||
if (timepats.length === 0) {
|
||||
return nothing;
|
||||
}
|
||||
const findsteps = (x) => (Array.isArray(x) ? x : [x._steps, x]);
|
||||
timepats = timepats.map(reify);
|
||||
const findsteps = (x) => (Array.isArray(x) ? x : [x._steps ?? 1, x]);
|
||||
timepats = timepats.map(findsteps);
|
||||
if (timepats.find((x) => x[0] === undefined)) {
|
||||
const times = timepats.map((a) => a[0]).filter((x) => x !== undefined);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue