fix: agent info not updating when switching routes
This commit is contained in:
@@ -39,7 +39,7 @@ export const useAgents = () => {
|
||||
};
|
||||
|
||||
const getAgent = (id: MaybeRef<string>) => {
|
||||
return computed(() => state.list.value.find((agent) => agent.id === id) || null);
|
||||
return computed(() => state.list.value.find((agent) => agent.id === toRef(id).value) || null);
|
||||
}
|
||||
|
||||
const createAgent = async () => {
|
||||
|
||||
Reference in New Issue
Block a user