Added JSON and list checks to app sdk parsing
This commit is contained in:
@@ -3050,7 +3050,7 @@ class AppBase:
|
||||
try:
|
||||
for key, value in params.items():
|
||||
try:
|
||||
if isinstance(value, str):
|
||||
if isinstance(value, str) and ((value.startswith("{") and value.endswith("}")) or (value.startswith("[") and value.endswith("]"))):
|
||||
params[key] = ast.literal_eval(value)
|
||||
except Exception as e:
|
||||
self.logger.info(f"[DEBUG] Failed parsing value with ast: {e}")
|
||||
|
||||
@@ -74,6 +74,7 @@ import {
|
||||
Pause as PauseIcon,
|
||||
Delete as DeleteIcon,
|
||||
AddCircleOutline as AddCircleOutlineIcon,
|
||||
Circle as CircleIcon,
|
||||
Save as SaveIcon,
|
||||
KeyboardArrowLeft as KeyboardArrowLeftIcon,
|
||||
KeyboardArrowRight as KeyboardArrowRightIcon,
|
||||
@@ -1905,7 +1906,7 @@ const ParsedAction = (props) => {
|
||||
) : pathdata.type === "list" ? (
|
||||
<FormatListNumberedIcon style={{marginLeft: 9, marginRight: 10, }} />
|
||||
) : (
|
||||
<AddCircleOutlineIcon style={{marginLeft: 9, marginRight: 10, color: coverColor}}/>
|
||||
<Circle style={{marginLeft: 9, marginRight: 10, color: coverColor}}/>
|
||||
);
|
||||
//<ExpandMoreIcon style={iconStyle} />
|
||||
|
||||
|
||||
@@ -713,6 +713,9 @@ const Workflows = (props) => {
|
||||
Before publishing, we will sanitize all inputs, remove references to
|
||||
you, randomize ID's and remove your authentication.
|
||||
</Typography>
|
||||
<Typography variant="body1" style={{ marginBottom: 20 }}>
|
||||
The published workflow is yours, and you can always change your public workflows after they are released.
|
||||
</Typography>
|
||||
</div>
|
||||
<Button
|
||||
variant="contained"
|
||||
|
||||
Reference in New Issue
Block a user