Fix index when 0 len
This commit is contained in:
parent
5cd6da7609
commit
bc5e3ab844
@ -63,9 +63,11 @@
|
||||
|
||||
export let seedDefault = true;
|
||||
if (seedDefault) {
|
||||
const firstChannel = channels[0];
|
||||
|
||||
data = {
|
||||
colour: 0x7289da,
|
||||
channels: channels[0].id,
|
||||
channels: firstChannel ? firstChannel.id : undefined,
|
||||
panels: [],
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user