Refactor code by removing unnecessary lines and comments, and update wall thickness in builder store

This commit is contained in:
2025-06-23 10:54:17 +05:30
parent e38f17a18d
commit 329acbe397
8 changed files with 9 additions and 18 deletions

View File

@@ -13,7 +13,6 @@ import { deleteThreadApi } from "../../../services/factoryBuilder/comments/delet
import { createThreadApi } from "../../../services/factoryBuilder/comments/createThreadApi";
import { getRelativeTime } from "./function/getRelativeTime";
const ThreadChat: React.FC = () => {
const { userId, organization } = getUserData();
const [openThreadOptions, setOpenThreadOptions] = useState(false);
@@ -42,7 +41,6 @@ const ThreadChat: React.FC = () => {
useEffect(() => {
if (comments.length > 0 && selectedComment) {
const allMessages = comments
.flatMap((val: any) =>
@@ -60,7 +58,7 @@ const ThreadChat: React.FC = () => {
});
setMessages(allMessages);
}
}, [selectedComment])
@@ -251,9 +249,6 @@ const ThreadChat: React.FC = () => {
threadTitle: value
};
if (threadSocket) {
setInputActive(false);