Skip to content

Commit

Permalink
update based on review
Browse files Browse the repository at this point in the history
  • Loading branch information
marrobi committed Sep 25, 2023
1 parent 64fd9f6 commit f0355ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/app/src/components/workspaces/WorkspaceLeftNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const WorkspaceLeftNav: React.FunctionComponent<WorkspaceLeftNavProps> =
useEffect(() => {
const getWorkspaceServices = async () => {
// get the workspace services
if(workspaceCtx.workspace.id === undefined) return;
if(!workspaceCtx.workspace.id) return;
let serviceLinkArray: Array<any> = [];
props.workspaceServices.forEach((service: WorkspaceService) => {
serviceLinkArray.push(
Expand Down
2 changes: 1 addition & 1 deletion ui/app/src/components/workspaces/WorkspaceServiceItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const WorkspaceServiceItem: React.FunctionComponent<WorkspaceServiceItemP

useEffect(() => {
const getData = async () => {
if(workspaceCtx.workspace.id === undefined) return;
if(!workspaceCtx.workspace.id) return;

setHasUserResourceTemplates(false);
try {
Expand Down

0 comments on commit f0355ee

Please sign in to comment.