Skip to content

Commit

Permalink
Cleaning up 1
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaquish committed Mar 11, 2024
1 parent bbb292b commit 34619a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
4 changes: 1 addition & 3 deletions backend/ibutsu_server/widgets/importance_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,5 @@ def get_importance_component(env="prod",
data = {"testa": group_field,
"testb": components,
"testc": project,
"sdatnew": sdatret,
#TODO: remove tmpdat here and in frontend, just used for troubleshooting
"tmpdat": sorted(["lol"])}
"sdatnew": sdatret}
return data
9 changes: 1 addition & 8 deletions frontend/src/widgets/importancecomponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ export class ImportanceComponentWidget extends React.Component {
testa: "",
testb: "",
testc: "",
sdatnew: [],
tmpdat: []
sdatnew: []
},
isLoading: true,
};
Expand Down Expand Up @@ -75,14 +74,9 @@ export class ImportanceComponentWidget extends React.Component {
}

render() {

const Console = prop => (console[Object.keys(prop)[0]](...Object.values(prop))
,null // ➜ React components must return something
)
return (
<Card>
<WidgetHeader title={this.title} getDataFunc={this.getData} onEditClick={this.props.onEditClick} onDeleteClick={this.props.onDeleteClick}/>
<Console log={"LOL"} />
{(!this.state.dataError && this.state.isLoading) &&
<CardBody>
<Text component="h2">Loading ...</Text>
Expand Down Expand Up @@ -114,7 +108,6 @@ export class ImportanceComponentWidget extends React.Component {
</Table>
</>
))}
{/*<Text component="h2">{this.state.data.tmpdat}</Text>*/}
</CardBody>
}
</Card>
Expand Down

0 comments on commit 34619a6

Please sign in to comment.