refac
This commit is contained in:
1 parent
94302de49b
commit
ab5dfbda54
1 file changed
+3
-2
@@ -32,7 +32,7 @@
|
|||||||
import TagSelector from './common/TagSelector.svelte';
|
import TagSelector from './common/TagSelector.svelte';
|
||||||
import Badge from '$lib/components/common/Badge.svelte';
|
import Badge from '$lib/components/common/Badge.svelte';
|
||||||
import Pagination from '../common/Pagination.svelte';
|
import Pagination from '../common/Pagination.svelte';
|
||||||
|
|
||||||
let shiftKey = false;
|
let shiftKey = false;
|
||||||
|
|
||||||
const i18n = getContext('i18n');
|
const i18n = getContext('i18n');
|
||||||
@@ -73,6 +73,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
const getPromptList = async () => {
|
const getPromptList = async () => {
|
||||||
|
if (!loaded) return;
|
||||||
|
|
||||||
loading = true;
|
loading = true;
|
||||||
try {
|
try {
|
||||||
const res = await getPromptItems(
|
const res = await getPromptItems(
|
||||||
@@ -172,7 +174,6 @@
|
|||||||
|
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
viewOption = localStorage?.workspaceViewOption || '';
|
viewOption = localStorage?.workspaceViewOption || '';
|
||||||
page = 1;
|
|
||||||
loaded = true;
|
loaded = true;
|
||||||
|
|
||||||
const onKeyDown = (event) => {
|
const onKeyDown = (event) => {
|
||||||
|
|||||||
Reference in new issue
Block a user