chore: add selector for use app store (#3746)

This commit is contained in:
KVOJJJin
2024-04-24 13:07:20 +08:00
committed by GitHub
parent a39de8a686
commit 0715db7681
5 changed files with 19 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ const AgentLogDetail: FC<AgentLogDetailProps> = ({
const { t } = useTranslation()
const { notify } = useContext(ToastContext)
const [currentTab, setCurrentTab] = useState<string>(activeTab)
const { appDetail } = useAppStore()
const appDetail = useAppStore(s => s.appDetail)
const [loading, setLoading] = useState<boolean>(true)
const [runDetail, setRunDetail] = useState<AgentLogDetailResponse>()
const [list, setList] = useState<AgentIteration[]>([])