Skip to content

Commit 5352560

Browse files
author
minjk-bl
committed
Apps > Groupby - aggregate code generation bug fixed
1 parent f80ac5d commit 5352560

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/common/vpGroupby.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,9 @@ define([
437437
page.appendFormatLine('<option value="{0}">{1}</option>', '', 'Select method type');
438438
page.appendFormatLine('<option value="{0}">{1}</option>', 'typing', 'Typing');
439439
this.methodList.forEach(method => {
440+
if (method.value == '') {
441+
return;
442+
}
440443
page.appendFormatLine('<option value="{0}">{1}</option>', method.value, method.label);
441444
});
442445
page.appendLine('</select>');
@@ -1196,7 +1199,7 @@ define([
11961199
}
11971200
}
11981201

1199-
if (method != '') {
1202+
if (method != '' || advanced) {
12001203
// when using as_index option with Grouper, use .reset_index()
12011204
if (useGrouper && resetIndex) {
12021205
methodStr.append('.reset_index()');

0 commit comments

Comments
 (0)