(params: any)
| 77 | } |
| 78 | }, [pluginLists]) |
| 79 | const fetchData = async (params: any) => { |
| 80 | setLoading(true); |
| 81 | try { |
| 82 | const res: any = await getPluginList(params) |
| 83 | const data = res.data.map((item: any) => { |
| 84 | return { |
| 85 | ...item, |
| 86 | } |
| 87 | }) |
| 88 | |
| 89 | setPluginFunList(data) |
| 90 | setHasMore(res.has_more) |
| 91 | } catch (error) { |
| 92 | console.log(error) |
| 93 | } |
| 94 | setLoading(false); |
| 95 | }; |
| 96 | const handleCreatePrompt = async () => { |
| 97 | setOpenDrawer(true) |
| 98 | } |
no test coverage detected