socket and api integerated successfully

This commit is contained in:
2025-09-02 10:48:58 +05:30
parent 4bfd0cf937
commit a3b2d258cf
36 changed files with 221 additions and 200 deletions

View File

@@ -120,7 +120,7 @@ function Line({ points }: Readonly<LineProps>) {
if (projectId && asset) {
removeWallAsset(asset.modelUuid);
if (!socket?.active) {
if (!socket?.connected) {
// API
@@ -142,7 +142,7 @@ function Line({ points }: Readonly<LineProps>) {
}
}
})
if (!socket?.active) {
if (!socket?.connected) {
// API
@@ -185,7 +185,7 @@ function Line({ points }: Readonly<LineProps>) {
if (removedFloors.length > 0) {
removedFloors.forEach(floor => {
if (projectId) {
if (!socket?.active) {
if (!socket?.connected) {
// API
@@ -226,7 +226,7 @@ function Line({ points }: Readonly<LineProps>) {
if (updatedFloors.length > 0) {
updatedFloors.forEach(floor => {
if (projectId) {
if (!socket?.active) {
if (!socket?.connected) {
// API
@@ -274,7 +274,7 @@ function Line({ points }: Readonly<LineProps>) {
if (removedZones.length > 0) {
removedZones.forEach(zone => {
if (projectId) {
if (!socket?.active) {
if (!socket?.connected) {
// API
@@ -315,7 +315,7 @@ function Line({ points }: Readonly<LineProps>) {
if (updatedZones.length > 0) {
updatedZones.forEach(zone => {
if (projectId) {
if (!socket?.active) {
if (!socket?.connected) {
// API
@@ -452,7 +452,7 @@ function Line({ points }: Readonly<LineProps>) {
});
if (projectId && updatedWallAsset) {
if (!socket?.active) {
if (!socket?.connected) {
// API
upsertWallAssetApi(projectId, selectedVersion?.versionId || '', updatedWallAsset);
@@ -474,7 +474,7 @@ function Line({ points }: Readonly<LineProps>) {
});
}
if (!socket?.active) {
if (!socket?.connected) {
// API
@@ -519,7 +519,7 @@ function Line({ points }: Readonly<LineProps>) {
if (updatedFloors.length > 0 && projectId) {
updatedFloors.forEach(updatedFloor => {
if (!socket?.active) {
if (!socket?.connected) {
// API
@@ -564,7 +564,7 @@ function Line({ points }: Readonly<LineProps>) {
if (updatedZones.length > 0 && projectId) {
updatedZones.forEach(updatedZone => {
if (!socket?.active) {
if (!socket?.connected) {
// API