Skip to content

Commit e742830

Browse files
author
minjk-bl
committed
Fix bug on Frame condition using isnull or notnull
1 parent a50103d commit e742830

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

visualpython/js/m_apps/Frame.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2767,7 +2767,7 @@ define([
27672767
var condText = $(condTextTag[i]).prop('checked');
27682768
var operConn = $(operConnTag[i]).val();
27692769
var condObj = {};
2770-
if (col !== '' && oper !== '' && cond !== '') {
2770+
if (col !== '' && oper !== '' && (oper == 'isnull()' || oper === 'notnull()' || cond !== '')) {
27712771
condObj = {
27722772
oper: oper,
27732773
cond: com_util.convertToStr(cond, condText)
@@ -2808,7 +2808,7 @@ define([
28082808
var condText = $(condTextTag[i]).prop('checked');
28092809
var operConn = $(operConnTag[i]).val();
28102810
var condObj = {};
2811-
if (col !== '' && oper !== '' && cond !== '') {
2811+
if (col !== '' && oper !== '' && (oper == 'isnull()' || oper === 'notnull()' || cond !== '')) {
28122812
condObj = {
28132813
colName: col,
28142814
oper: oper,
@@ -2861,7 +2861,7 @@ define([
28612861
var condText = $(condTextTag[i]).prop('checked');
28622862
var operConn = $(operConnTag[i]).val();
28632863
var condObj = {};
2864-
if (col !== '' && oper !== '' && cond !== '') {
2864+
if (col !== '' && oper !== '' && (oper == 'isnull()' || oper === 'notnull()' || cond !== '')) {
28652865
condObj = {
28662866
colName: col,
28672867
oper: oper,
@@ -2894,7 +2894,7 @@ define([
28942894
var condText = $(condTextTag[i]).prop('checked');
28952895
var operConn = $(operConnTag[i]).val();
28962896
var condObj = {};
2897-
if (col !== '' && oper !== '' && cond !== '') {
2897+
if (col !== '' && oper !== '' && (oper == 'isnull()' || oper === 'notnull()' || cond !== '')) {
28982898
condObj = {
28992899
oper: oper,
29002900
cond: com_util.convertToStr(cond, condText)

0 commit comments

Comments
 (0)