Co-authored-by: Rishabh Saxena <rishabh@appsmith.com> Co-authored-by: Rishabh-Rathod <rishabh.rathod@appsmith.com>
9 lines
189 B
TypeScript
9 lines
189 B
TypeScript
export const getPageLevelSocketRoomId = (
|
|
pageId: string,
|
|
currentGitBranch?: string,
|
|
) => {
|
|
return currentGitBranch
|
|
? `${pageId}-${currentGitBranch}`
|
|
: (pageId as string);
|
|
};
|