PromucFlow_constructor/app/client/src/sagas/WebsocketSagas/utils.ts
haojin111 d701f8dfb1
fix: misc git sync fixes / ui polish (#9229)
Co-authored-by: Rishabh Saxena <rishabh@appsmith.com>
Co-authored-by: Rishabh-Rathod <rishabh.rathod@appsmith.com>
2021-12-07 07:59:32 +00:00

9 lines
189 B
TypeScript

export const getPageLevelSocketRoomId = (
pageId: string,
currentGitBranch?: string,
) => {
return currentGitBranch
? `${pageId}-${currentGitBranch}`
: (pageId as string);
};