Skip to content

Commit 25bfe4d

Browse files
committed
removing debuggers
1 parent 59a7cfd commit 25bfe4d

4 files changed

Lines changed: 0 additions & 11 deletions

File tree

packages/commons/src/APIutils.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
export const getTranslatedOptions = (options) => {
22
const currentLocale = (window._user_locale ? window._user_locale : '').toUpperCase()
33
if (options && options instanceof Array) {
4-
debugger;
54
return options.map(o => {
65
let {label, value, labels} = o
76
if (labels && labels[currentLocale]) {

plugins/wp-react-blocks-plugin/blocks/charts/Sort.jsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,11 @@ const Sort = (props) => {
2121

2222
//The following code will be used to sort stacked bar's slices https://devgateway.atlassian.net/browse/TCDIKE-767
2323
let sortBySliceOptions = []
24-
debugger;
2524
if (dimension2 && allCategories) {
2625

2726
const target = allCategories.find(d => d.type == dimension2)
2827

2928
if (target && target.items) {
30-
debugger;
3129
sortBySliceOptions = getTranslatedOptions(target.items)
3230
.map(item => {
3331
return ({label: "Value of " + item.label, value: item.value})

plugins/wp-react-blocks-plugin/blocks/d3Map/layers/Flow.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,6 @@ export class DataLayerSetting extends Component {
266266
}
267267

268268

269-
debugger;
270269

271270
return ([<PanelBody initialOpen={false} title={"Data Source"}>
272271
<PanelRow>

plugins/wp-react-blocks-plugin/blocks/d3Map/layers/utils/BreaksGenerator.jsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const BreaksGenerator = ({
2424
const DEFAULT_POINT_SIZE = 8;
2525
const generate = (pretty, nBreaks = 4) => {
2626
//eslint-disable-next-line
27-
debugger;
2827

2928
const newBreaks = []
3029
const queryString = filters.map(f => f.param + "=" + f.value.map(v => v).toString()).join('&')
@@ -53,7 +52,6 @@ const BreaksGenerator = ({
5352
naturalBreaks.push(pretty ? prettyRound(clusters[clusters.length - 1].slice(-1)[0]) : clusters[clusters.length - 1].slice(-1)[0]);
5453

5554
//eslint-disable-next-line
56-
debugger;
5755
for (let i = 0; i < naturalBreaks.length - 2; i++) {
5856

5957
newBreaks.push({
@@ -70,7 +68,6 @@ const BreaksGenerator = ({
7068
let borderColor = defaultBorderColor
7169

7270
let size = DEFAULT_POINT_SIZE
73-
debugger;
7471

7572
if (currentGraterThan.length > 0) {
7673
color = currentGraterThan[0].color
@@ -92,7 +89,6 @@ const BreaksGenerator = ({
9289
}
9390
const add = () => {
9491
//eslint-disable-next-line
95-
debugger;
9692
const lessThanBreaks = breaks.filter(b => b.type == 'lessThan')
9793
let graterThanBreaks = breaks.filter(b => b.type == 'graterThan')
9894

@@ -122,7 +118,6 @@ const BreaksGenerator = ({
122118

123119
const update = (property, index, value) => {
124120
//eslint-disable-next-line
125-
debugger;
126121
const lessThanBreaks = breaks.filter(b => b.type == 'lessThan')
127122
let graterThanBreaks = breaks.filter(b => b.type == 'graterThan')
128123
const newBreaks = [...lessThanBreaks]
@@ -133,7 +128,6 @@ const BreaksGenerator = ({
133128

134129
const remove = (index) => {
135130
//eslint-disable-next-line
136-
debugger;
137131
let graterThanBreaks = breaks.filter(b => b.type == 'graterThan')
138132
let lessThanBreaks = breaks.filter(b => b.type == 'lessThan')
139133
const newBreaks = [...lessThanBreaks]
@@ -152,7 +146,6 @@ const BreaksGenerator = ({
152146

153147
const updateGraterThan = (property, value) => {
154148
//eslint-disable-next-line
155-
debugger;
156149
const graterThanBreak = breaks.filter(b => b.type == 'graterThan')[0]
157150
const lessThanBreaks = breaks.filter(b => b.type == 'lessThan')
158151
graterThanBreak[property] = value

0 commit comments

Comments
 (0)