added collabcam socket response
This commit is contained in:
@@ -10,7 +10,7 @@ function ThreadInstances() {
|
||||
const { projectId } = useParams();
|
||||
const { userId } = getUserData();
|
||||
const { versionStore, threadStore } = useSceneContext();
|
||||
const { threads, setComments } = threadStore();
|
||||
const { threads, setThreads } = threadStore();
|
||||
const { selectedVersion } = versionStore();
|
||||
|
||||
useEffect(() => {
|
||||
@@ -36,7 +36,7 @@ function ThreadInstances() {
|
||||
: [],
|
||||
}))
|
||||
: [];
|
||||
setComments(formattedThreads);
|
||||
setThreads(formattedThreads);
|
||||
})
|
||||
.catch((err) => {
|
||||
console.error("Failed to fetch threads:", err);
|
||||
|
||||
Reference in New Issue
Block a user