weather output, map nullcheck
This commit is contained in:
parent
76e5324d14
commit
3d0dbe114f
2 changed files with 6 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ export default {
|
|||
generators: {
|
||||
json: (block, generator) => {
|
||||
const
|
||||
value = JSON.parse(generator.valueToCode(block, 'VALUE', 0)),
|
||||
value = JSON.parse(generator.valueToCode(block, 'VALUE', 0) || null),
|
||||
from = JSON.parse(generator.valueToCode(block, 'FROM_RANGE', 0)),
|
||||
to = JSON.parse(generator.valueToCode(block, 'TO_RANGE', 0)),
|
||||
payload = { mapValue: { value, from, to }}
|
||||
|
|
|
|||
|
|
@ -9,6 +9,11 @@ export default {
|
|||
ioPlus: true,
|
||||
description: "Fetch the current or forecast weather conditions at the specified location.",
|
||||
|
||||
connections: {
|
||||
mode: "value",
|
||||
output: "expression",
|
||||
},
|
||||
|
||||
mixins: [
|
||||
'replaceDropdownOptions',
|
||||
{ weatherMixin }
|
||||
|
|
|
|||
Loading…
Reference in a new issue