Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
fix(resource management): renew to empty list
Browse files Browse the repository at this point in the history
Co-authored-by: Kenneth Trecy Tobias <19201.tobias.kennethtrecy.c@gmail.com>
  • Loading branch information
lemredd and KennethTrecy committed Nov 22, 2022
1 parent 86abf5b commit 1de1d25
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions components/resource_management/make_existence_operators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ export default function<

if (newData.length === 0) {
queryState.offset.value = Math.max(queryState.offset.value - 1, 0)
list.value = {
...list.value,
"data": [],
"meta": {
...list.value.meta,
"count": 0
}
}
} else {
list.value = {
...list.value,
Expand Down

0 comments on commit 1de1d25

Please sign in to comment.