Skip to content

Commit 66cf8bf

Browse files
committed
Building wordpress from local files on NPM mode
1 parent 37bfe78 commit 66cf8bf

4 files changed

Lines changed: 194 additions & 187 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ 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-
24+
debugger;
2525
if (dimension2 && allCategories) {
2626

2727
const target = allCategories.find(d => d.type == dimension2)
2828

2929
if (target && target.items) {
30-
30+
debugger;
3131
sortBySliceOptions = getTranslatedOptions(target.items)
3232
.map(item => {
3333
return ({label: "Value of " + item.label, value: item.value})

plugins/wp-react-blocks-plugin/blocks/commons/APIutils.js

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

0 commit comments

Comments
 (0)