mirror of
https://github.com/langgenius/dify.git
synced 2026-05-09 12:59:18 +08:00
update
This commit is contained in:
parent
51dd7871c5
commit
6e08e7ff95
@ -65,17 +65,12 @@ export const appStoreSelectors = {
|
||||
appDetails,
|
||||
}
|
||||
|
||||
const get = useAppStore.getState
|
||||
const set = useAppStore.setState
|
||||
|
||||
async function fetchAppDetail(appID: string | undefined) {
|
||||
if (!appID)
|
||||
return null
|
||||
|
||||
const cur = get().appDetails?.[appID]
|
||||
if (cur)
|
||||
return cur
|
||||
|
||||
const appDetail = await serviceGet<App>(`/apps/${appID}`)
|
||||
set(state => ({
|
||||
appDetails: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user