This commit is contained in:
Jan Prochazka
2024-07-24 12:48:02 +02:00
parent bacb9510d7
commit 227d81a01a

View File

@@ -1082,14 +1082,14 @@
$: { $: {
const stringified = stableStringify(selectedCells); const stringified = stableStringify(selectedCells);
if ( if (
(lastPublishledSelectedCellsRef.get() != stringified || changeSetValueRef.get() != $changeSetStore.value) && (lastPublishledSelectedCellsRef.get() != stringified || changeSetValueRef.get() != $changeSetStore?.value) &&
realColumnUniqueNames?.length > 0 realColumnUniqueNames?.length > 0
) { ) {
tick().then(() => { tick().then(() => {
const rowIndexes = _.uniq(selectedCells.map(x => x[0])); const rowIndexes = _.uniq(selectedCells.map(x => x[0]));
if (rowIndexes.every(x => grider.getRowData(x))) { if (rowIndexes.every(x => grider.getRowData(x))) {
lastPublishledSelectedCellsRef.set(stringified); lastPublishledSelectedCellsRef.set(stringified);
changeSetValueRef.set($changeSetStore.value); changeSetValueRef.set($changeSetStore?.value);
$selectedCellsCallback = () => getCellsPublished(selectedCells); $selectedCellsCallback = () => getCellsPublished(selectedCells);
if (onChangeSelectedColumns) { if (onChangeSelectedColumns) {