aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/pages/bug/labels/LabelMenu.tsx
diff options
context:
space:
mode:
authorSascha <GlancingMind@outlook.com>2021-03-30 17:05:12 +0200
committerSascha <GlancingMind@outlook.com>2021-04-08 14:57:39 +0200
commit5bad12bed24d5602f39b02ad39cac63facfa4cfd (patch)
tree84a08c87239c9424133661c9f36c636a5440afed /webui/src/pages/bug/labels/LabelMenu.tsx
parentcb609c28b5d1fa6cde79e2ef6b884988182f57c2 (diff)
downloadgit-bug-5bad12bed24d5602f39b02ad39cac63facfa4cfd.tar.gz
Remove console.logs
Diffstat (limited to 'webui/src/pages/bug/labels/LabelMenu.tsx')
-rw-r--r--webui/src/pages/bug/labels/LabelMenu.tsx11
1 files changed, 0 insertions, 11 deletions
diff --git a/webui/src/pages/bug/labels/LabelMenu.tsx b/webui/src/pages/bug/labels/LabelMenu.tsx
index 88347316..5c5a3ae9 100644
--- a/webui/src/pages/bug/labels/LabelMenu.tsx
+++ b/webui/src/pages/bug/labels/LabelMenu.tsx
@@ -224,8 +224,6 @@ function LabelMenu({ bug }: Props) {
? selectedLabels.filter((label) => label !== key)
: selectedLabels.concat([key]);
setSelectedLabels(labels);
- console.log('toggle (selected)');
- console.log(labels);
}
function diff(oldState: string[], newState: string[]) {
@@ -238,13 +236,7 @@ function LabelMenu({ bug }: Props) {
}
const changeBugLabels = (selectedLabels: string[]) => {
- console.log('CBL');
- console.log('selected labels');
- console.log(selectedLabels);
- console.log('buglabels');
- console.log(bugLabelNames);
const labels = diff(bugLabelNames, selectedLabels);
- console.log(labels);
if (labels.added.length > 0 || labels.removed.length > 0) {
setLabelMutation({
variables: {
@@ -267,7 +259,6 @@ function LabelMenu({ bug }: Props) {
awaitRefetchQueries: true,
})
.then((res) => {
- console.log(res);
setSelectedLabels(selectedLabels);
setBugLabelNames(selectedLabels);
})
@@ -279,9 +270,7 @@ function LabelMenu({ bug }: Props) {
return selectedLabels.includes(key);
}
- //TODO label wont removed, if a filter hides it!
function createNewLabel(name: string) {
- console.log('CREATE NEW LABEL: ' + name);
changeBugLabels(selectedLabels.concat([name]));
}