socket and api integerated successfully
This commit is contained in:
@@ -43,7 +43,7 @@ const SelectedFloorProperties = () => {
|
||||
if (!isNaN(parsed) && floor) {
|
||||
const updatedFloor = updateFloor(floor.floorUuid, { floorDepth: parsed });
|
||||
if (projectId) {
|
||||
if (!socket?.active) {
|
||||
if (!socket?.connected) {
|
||||
|
||||
// API
|
||||
|
||||
@@ -72,7 +72,7 @@ const SelectedFloorProperties = () => {
|
||||
if (!isNaN(parsed) && floor) {
|
||||
const updatedFloor = updateFloor(floor.floorUuid, { bevelStrength: parsed });
|
||||
if (projectId) {
|
||||
if (!socket?.active) {
|
||||
if (!socket?.connected) {
|
||||
|
||||
// API
|
||||
|
||||
@@ -100,7 +100,7 @@ const SelectedFloorProperties = () => {
|
||||
if (!floor) return;
|
||||
const updatedFloor = updateFloor(floor.floorUuid, { isBeveled: !floor.isBeveled });
|
||||
if (projectId) {
|
||||
if (!socket?.active) {
|
||||
if (!socket?.connected) {
|
||||
|
||||
// API
|
||||
|
||||
@@ -128,7 +128,7 @@ const SelectedFloorProperties = () => {
|
||||
const key = activeSurface === "top" ? "topMaterial" : "sideMaterial";
|
||||
const updatedFloor = updateFloor(floor.floorUuid, { [key]: material.textureId });
|
||||
if (projectId) {
|
||||
if (!socket?.active) {
|
||||
if (!socket?.connected) {
|
||||
|
||||
// API
|
||||
|
||||
|
||||
Reference in New Issue
Block a user