File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,10 @@ onBeforeMount(async () => {
171171 }
172172
173173 for (const key in customSet ) {
174- if (Object .prototype .hasOwnProperty .call (customSet , key )) {
174+ if (
175+ Object .prototype .hasOwnProperty .call (customSet , key ) &&
176+ ! [null , undefined ].includes (rawData [key ])
177+ ) {
175178 customSet [key ] = rawData [key ]
176179 }
177180 }
Original file line number Diff line number Diff line change @@ -150,7 +150,10 @@ onBeforeMount(async () => {
150150 }
151151
152152 for (const key in customSet ) {
153- if (Object .prototype .hasOwnProperty .call (customSet , key )) {
153+ if (
154+ Object .prototype .hasOwnProperty .call (customSet , key ) &&
155+ ! [null , undefined ].includes (rawData [key ])
156+ ) {
154157 customSet [key ] = rawData [key ]
155158 }
156159 }
Original file line number Diff line number Diff line change @@ -85,7 +85,10 @@ const init = () => {
8585 floatIcon .value = rawData .float_icon
8686
8787 for (const key in sqlBotForm ) {
88- if (Object .prototype .hasOwnProperty .call (sqlBotForm , key )) {
88+ if (
89+ Object .prototype .hasOwnProperty .call (sqlBotForm , key ) &&
90+ ! [null , undefined ].includes (rawData [key ])
91+ ) {
8992 sqlBotForm [key ] = rawData [key ]
9093 }
9194 }
You can’t perform that action at this time.
0 commit comments