samll refactor

This commit is contained in:
Jan Prochazka
2021-07-14 20:54:52 +02:00
parent d2317ab908
commit a0df43484a
2 changed files with 6 additions and 6 deletions

View File

@@ -49,7 +49,7 @@
name: 'Set NULL',
keyText: 'Ctrl+0',
testEnabled: () => getCurrentDataForm() != null,
onClick: () => getCurrentDataForm().setNull(),
onClick: () => getCurrentDataForm().setFixedValue(null),
});
registerCommand({
@@ -247,9 +247,9 @@
// if (onSave) onSave();
// }
export function setNull() {
export function setFixedValue(value) {
if (isDataCell(currentCell)) {
setCellValue(currentCell, null);
setCellValue(currentCell, value);
}
}