You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Just dispatch if anything other than dataType changes
1244
+
// or if the initialValue is null/undefined
1245
+
if(
1246
+
propertyName!=='dataType'||
1247
+
originalVariable?.initialValue==null||
1248
+
originalVariable?.initialValue===''
1249
+
){
1250
+
dispatch({
1251
+
type: 'CHANGE_USER_DEFINED_VARIABLE',
1252
+
payload: {key, propertyName, propertyValue},
1253
+
});
1254
+
return;
1255
+
}
1256
+
1257
+
// Check if the dataType change is intentional.
1258
+
if(
1259
+
propertyName==='dataType'&&
1260
+
!window.confirm(
1261
+
intl.formatMessage({
1262
+
description:
1263
+
'Changing user variable data type and transforming initial value confirmation message',
1264
+
defaultMessage:
1265
+
'Changing the data type requires the initial value to be changed. This will reset the initial value back to the empty value. Are you sure that you want to do this?',
0 commit comments