diff --git a/frontend/src/views/AngularWorkflow.jsx b/frontend/src/views/AngularWorkflow.jsx index 743b799d..a210b1be 100755 --- a/frontend/src/views/AngularWorkflow.jsx +++ b/frontend/src/views/AngularWorkflow.jsx @@ -8589,13 +8589,15 @@ const AngularWorkflow = (defaultprops) => { // Further checks if those fields are already set in a previously used action newSelectedAction = RunAutocompleter(newSelectedAction); - if ( - newaction.returns.example !== undefined && - newaction.returns.example !== null && - newaction.returns.example.length > 0 - ) { - newSelectedAction.example = newaction.returns.example; - } + // Ensured newaction.returns is defined before accessing newaction.returns.example. +if ( + newaction.returns && + newaction.returns.example !== undefined && + newaction.returns.example !== null && + newaction.returns.example.length > 0 +) { + newSelectedAction.example = newaction.returns.example; +} if ( newaction.description !== undefined && @@ -15533,6 +15535,9 @@ const AngularWorkflow = (defaultprops) => { + {executionData.execution_id !== undefined && + executionData.execution_id !== null && + executionData.execution_id.length > 0 ? ( { + ) : null} {executionData.status === "EXECUTING" ? ( { const { globalUrl, isLoaded, userdata, setUserData } = props; //const alert = useAlert(); @@ -49,17 +44,6 @@ const Settings = (props) => { const [userSettings, setUserSettings] = useState({}); - const [showApiKey, setShowApiKey] = useState(false); - const [apiKeyCopied, setApiKeyCopied] = useState(false); - - const handleCopyApiKey = () => { - navigator.clipboard.writeText(userSettings.apikey); - setApiKeyCopied(true); - setTimeout(() => { - setApiKeyCopied(false); - }, 2000); - } - /* const [userdata.eth_info, setEthInfo] = useState(userdata.eth_info !== undefined && userdata.eth_info.account !== undefined && userdata.eth_info.account.length > 0 ? userdata.eth_info : { "account": "", @@ -483,7 +467,7 @@ const Settings = (props) => { > What is the API key used for? - {/* { id="standard-required" margin="normal" variant="outlined" - /> */} - - - setShowApiKey(!showApiKey)} - > - {showApiKey ? : } - - - - - - - - - ), - }} - color="primary" - value={showApiKey ? userSettings.apikey : '*'.repeat(36)} // Show API key if showApiKey is true, else show asterisks - required - disabled - fullWidth - placeholder="APIKEY" - id="standard-required" - margin="normal" - variant="outlined" - /> + />

{passwordFormMessage}

- {isCloud && ( - <> - -

Creator Incentive Program

- - )} - + +

Creator Incentive Program

{isCloud ?