@indigina/ui-kit 1.1.316 → 1.1.317
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.
|
@@ -9937,7 +9937,7 @@ class KitCardDetailsComponent {
|
|
|
9937
9937
|
this.isLoading.set(true);
|
|
9938
9938
|
this.cardData.set(this.cardData().filter(card => card.id.toString() !== cardId.toString()));
|
|
9939
9939
|
this.total.set(this.total() - 1);
|
|
9940
|
-
const loadedCards = (this.dataState().take ?? this.pageSize()) + (this.dataState().skip ?? 0);
|
|
9940
|
+
const loadedCards = (this.dataState().take ?? this.pageSize()) + (this.dataState().skip ?? 0) - 1;
|
|
9941
9941
|
if (this.newCreatedCards().some(card => card.id.toString() === cardId.toString())) {
|
|
9942
9942
|
this.newCreatedCards.set(this.newCreatedCards().filter(card => card.id.toString() !== cardId.toString()));
|
|
9943
9943
|
this.dataState.update(state => ({
|
|
@@ -9952,7 +9952,7 @@ class KitCardDetailsComponent {
|
|
|
9952
9952
|
return;
|
|
9953
9953
|
}
|
|
9954
9954
|
this.shouldAppendFetchedData = true;
|
|
9955
|
-
this.dataStateChanged.emit({ skip: loadedCards
|
|
9955
|
+
this.dataStateChanged.emit({ skip: loadedCards, take: 1, filters: this.skipNewCreatedCardFilter, search: this.dataState().search });
|
|
9956
9956
|
}
|
|
9957
9957
|
updateSpecificCardData(cardData) {
|
|
9958
9958
|
this.cardData.set(this.cardData().map(card => {
|