Skip to content

Commit d15eb79

Browse files
maxime-huyghebenel
authored andcommitted
REFACTORING: Useless console logs removed.
1 parent c6d6944 commit d15eb79

File tree

4 files changed

+2
-7
lines changed

4 files changed

+2
-7
lines changed

src/components/itemPage/PillListViewpoint.jsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,13 @@ class TopicPillList extends React.Component {
4343

4444
_getTopics() {
4545
const everyTopic = this.state.topics;
46-
// console.log('leaf topics', this.props.topics, 'everyTopic', everyTopic);
4746
return this.props.topics
4847
.filter(({ id }) => id in everyTopic)
4948

5049
.map(({ id }) => {
51-
console.log('id', id);
52-
console.log('everyjtopic', everyTopic);
5350
return (
5451
<div className="badge badge-pill badge-light" key={id}>
5552
<TopicPill id={id} name={everyTopic[id].name} />
56-
{/* <TopicPill id={id} name={id} /> */}
5753
</div>
5854
);
5955
});

src/components/portfolioPage/Portfolio.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ class Portfolio extends Component {
237237
if (!['id', 'name', 'user'].includes(itemId)) {
238238
let item = data[corpus.id][itemId];
239239
if (!item.name || !item.name.length) {
240-
console.log(`/item/${corpus.id}/${itemId} has no name!`);
240+
console.warn(`/item/${corpus.id}/${itemId} has no name!`);
241241
} else {
242242
item.id = itemId;
243243
item.corpus = corpus.id;

src/components/registerPage/Register.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class Register extends Component {
5555
this.props.history.push({
5656
pathname: param ? `/${param}` : '/'
5757
});
58-
}).catch((e) => console.log('Openning session failed !'));
58+
}).catch((e) => console.error('Openning session failed !'));
5959
}
6060
render() {
6161
return (

src/components/viewpointPage/Node.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ class Node extends React.Component {
9898
}
9999
function onDragStop(e) {
100100
e.stopPropagation();
101-
console.log('dragStop ' + this.props.me.name);
102101
this.setState({isDragged: false});
103102
this.props.change(this.props.id, {startDrag: false});
104103
}

0 commit comments

Comments
 (0)