Skip to content

Commit

Permalink
Merge pull request #143 from Aar-if/twenty
Browse files Browse the repository at this point in the history
Issue #2322 feat: Workspace improvements and Fixes
  • Loading branch information
itsvick authored Dec 6, 2024
2 parents 03c15e5 + 835686d commit 6f21c65
Show file tree
Hide file tree
Showing 3 changed files with 204 additions and 126 deletions.
6 changes: 4 additions & 2 deletions src/components/CollectionEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import {
} from "@/services/LocalStorageService";
const CollectionEditor: React.FC = () => {
const router = useRouter();
const { identifier, mode } = router.query;

const { identifier } = router.query;
const [mode, setMode] = useState<any>();
const [fullName, setFullName] = useState("Anonymous User");
const [userId, setUserId] = useState(TENANT_ID);
const [deviceId, setDeviceId] = useState("");
Expand All @@ -24,6 +24,8 @@ const CollectionEditor: React.FC = () => {
useEffect(() => {
const storedFullName = getLocalStoredUserName();
const storedUserId = getLocalStoredUserId() || TENANT_ID;
const storedMode = localStorage.getItem("contentMode");
setMode(storedMode || "edit");
setFullName(storedFullName ?? "Anonymous User");
setUserId(storedUserId);

Expand Down
Loading

0 comments on commit 6f21c65

Please sign in to comment.