mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-09-25 05:00:05 +00:00
fix secrets list loading
This commit is contained in:
parent
cacb16c0f1
commit
8ce3461289
1 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ export function usePagination<T, S = unknown>(
|
|||
const hasMore = ref(true);
|
||||
const data = ref<T[]>([]) as Ref<T[]>;
|
||||
const loading = ref(false);
|
||||
const each = ref(_each ?? []);
|
||||
const each = ref([...(_each ?? [])]);
|
||||
|
||||
async function loadData() {
|
||||
if (loading.value === true || hasMore.value === false) {
|
||||
|
@ -75,7 +75,7 @@ export function usePagination<T, S = unknown>(
|
|||
hasMore.value = true;
|
||||
data.value = [];
|
||||
loading.value = false;
|
||||
each.value = (_each ?? []) as UnwrapRef<S[]>;
|
||||
each.value = [...(_each ?? [])] as UnwrapRef<S[]>;
|
||||
|
||||
if (_page === 1) {
|
||||
// we need to reload manually as the page is already 1, so changing won't trigger watcher
|
||||
|
|
Loading…
Reference in a new issue