Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
marstamm committed Sep 12, 2024
1 parent 22499d8 commit eaeca6d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ export default function DeploymentForm(props) {
onAction
} = props;

console.log(id + 'robotTab');

const [ defaultValues, setValues ] = useLocalState(id + 'robotTab', {
'name': name.split('.')[0],
'endpoint': 'http://localhost:36227/',
Expand Down
5 changes: 3 additions & 2 deletions client/src/app/tabs/robot/BottomPanel/Run/RobotOutputTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export default function RobotOutputTab(props) {
const [ output, setOutput ] = useLocalState(id + 'output', '');
const [ isRunning, setIsRunning ] = useState(false);


return <>
<Fill slot="bottom-panel"
id="robot-output"
Expand All @@ -43,7 +42,7 @@ export default function RobotOutputTab(props) {
<Column span={ 4 }>
<Tile>
<Layer>
<CarbonRunForm { ...props } setOutput={ setOutput } isRunning={ isRunning } setIsRunning={ setIsRunning } />
<CarbonRunForm key={ props.id } { ...props } setOutput={ setOutput } isRunning={ isRunning } setIsRunning={ setIsRunning } />
</Layer>
</Tile>
</Column>
Expand Down Expand Up @@ -147,6 +146,8 @@ function CarbonRunForm(props) {
id
} = props;

console.log(id + 'robotTab');

const [ values, setValues ] = useLocalState(id + 'robotTab', {
'name': name?.split('.')?.[0],
'endpoint': 'http://localhost:36227/',
Expand Down
4 changes: 2 additions & 2 deletions client/src/app/tabs/robot/BottomPanel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import EngineInfo from './EngineInfo';
export default function(props) {
return <>
<EngineInfo />
<DeploymentButton { ...props }></DeploymentButton>
<Run { ...props }></Run>
<DeploymentButton key={ props.id } { ...props }></DeploymentButton>
<Run key={ props.id } { ...props }></Run>
</>;

}
Expand Down
1 change: 1 addition & 0 deletions client/src/app/tabs/robot/RobotEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ export class RobotEditor extends CachedComponent {
name={ this.props.file?.name }
id={ this.props.id }
onAction={ this.props.onAction }
key={ this.props.id }
{ ...this.props }
/>
</div>
Expand Down

0 comments on commit eaeca6d

Please sign in to comment.