Ensure the default export value is only set once
This commit is contained in:
parent
4d2f76e5be
commit
2f36b2f805
|
@ -42,7 +42,7 @@
|
||||||
let exportFormat
|
let exportFormat
|
||||||
let filterLookup
|
let filterLookup
|
||||||
|
|
||||||
$: if (options) {
|
$: if (options && !exportFormat) {
|
||||||
exportFormat = Array.isArray(options) ? options[0]?.key : []
|
exportFormat = Array.isArray(options) ? options[0]?.key : []
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue