Skip to content

Commit 2296546

Browse files
author
minjk-bl
committed
Edit PandasOption's reset code
1 parent 50cddec commit 2296546

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

visualpython/js/m_apps/PandasOption.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,10 @@ define([
8282

8383
let setDefault = $(this.wrapSelector('#setDefault')).prop('checked');
8484
if (setDefault == true) {
85-
Object.keys(this.state).forEach((key) => {
86-
code.push(com_util.formatString("pd.reset_option('display.{0}')", key));
87-
})
85+
// Object.keys(this.state).forEach((key) => {
86+
// code.push(com_util.formatString("pd.reset_option('display.{0}')", key));
87+
// })
88+
code.push("pd.reset_option('^display')");
8889
} else {
8990
Object.keys(this.state).forEach((key) => {
9091
if (that.state[key] && that.state[key] != '') {

0 commit comments

Comments
 (0)