@univerjs/sheets-data-validation 0.3.0-alpha.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +4 -1
- package/lib/umd/index.js +1 -1
- package/package.json +26 -26
package/lib/es/index.js
CHANGED
|
@@ -5445,7 +5445,10 @@ let SheetDataValidationSheetController = (_a22 = class extends Disposable {
|
|
|
5445
5445
|
const subUnitId = params.subUnitId || ((_a24 = workbook.getActiveSheet()) == null ? void 0 : _a24.getSheetId());
|
|
5446
5446
|
if (!subUnitId)
|
|
5447
5447
|
return { redos: [], undos: [] };
|
|
5448
|
-
const rules = this._sheetDataValidationModel.getRules(unitId, subUnitId)
|
|
5448
|
+
const rules = this._sheetDataValidationModel.getRules(unitId, subUnitId);
|
|
5449
|
+
if (rules.length === 0)
|
|
5450
|
+
return { redos: [], undos: [] };
|
|
5451
|
+
const ids = rules.map((i) => i.uid), redoParams = {
|
|
5449
5452
|
unitId,
|
|
5450
5453
|
subUnitId,
|
|
5451
5454
|
ruleId: ids,
|