mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
Changed default Action to script from cloud func (#913)
* Changed default Action to script from cloud func * Apply suggestions from code review Co-authored-by: Sidney Alcantara <sidney@sidney.me> * Updated to use falsy undefined value Co-authored-by: Sidney Alcantara <sidney@sidney.me>
This commit is contained in:
committed by
GitHub
parent
0b75d60813
commit
c7cca89622
@@ -303,7 +303,7 @@ const Settings = ({ config, onChange, fieldName }: ISettingsProps) => {
|
||||
aria-label="Action will run"
|
||||
name="isActionScript"
|
||||
value={
|
||||
config.isActionScript ? "actionScript" : "cloudFunction"
|
||||
config.isActionScript !== false ? "actionScript" : "cloudFunction"
|
||||
}
|
||||
onChange={(e) =>
|
||||
onChange("isActionScript")(
|
||||
@@ -359,7 +359,7 @@ const Settings = ({ config, onChange, fieldName }: ISettingsProps) => {
|
||||
</RadioGroup>
|
||||
</FormControl>
|
||||
|
||||
{!config.isActionScript ? (
|
||||
{config.isActionScript === false ? (
|
||||
<TextField
|
||||
id="callableName"
|
||||
label="Callable name"
|
||||
@@ -492,7 +492,7 @@ const Settings = ({ config, onChange, fieldName }: ISettingsProps) => {
|
||||
</Stack>
|
||||
),
|
||||
},
|
||||
config.isActionScript &&
|
||||
config.isActionScript !== false &&
|
||||
get(config, "undo.enabled") && {
|
||||
id: "undo",
|
||||
title: "Undo action",
|
||||
|
||||
Reference in New Issue
Block a user