Skip to content

Commit

Permalink
fix: options.section 可能为 undefined (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
lovelyCARDINAL authored Aug 24, 2023
1 parent a65576f commit 7cb5342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module/quickEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ var quickEdit = function (options) {
$editArea.val(options.editText + '\n')

var summaryVal
if (options.section !== null && options.section !== 'new') {
if (options.section && options.section !== 'new') {
summaryVal = $optionsLabel.find('.editSummary').val()
summaryVal = summaryVal.replace(
/\$section/gi,
Expand Down

0 comments on commit 7cb5342

Please sign in to comment.