Skip to content

Commit 2aa0e66

Browse files
authored
Merge pull request #12 from dockersamples/fix-custom-lab-launching
Fix error caused when launching a custom/non-catalog lab
2 parents 1cc5eca + bcbaf44 commit 2aa0e66

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ LABEL org.opencontainers.image.title="Labspaces" \
2323
com.docker.extension.publisher-url="https://github.com/dockersamples/labspace-extension" \
2424
com.docker.extension.additional-urls="[{\"title\":\"Create your own Labspace\",\"url\":\"https://github.com/dockersamples/labspace-starter\"}]" \
2525
com.docker.extension.categories="cloud-development" \
26-
com.docker.extension.changelog="- Fix detection of currently running labspace"
26+
com.docker.extension.changelog="- Fix error caused when launching a custom/non-catalog Labspace"
2727
COPY beaker.svg /
2828
COPY metadata.json /
2929
COPY --from=build /usr/local/app/dist /ui

src/components/Catalog/CatalogSidebar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function CatalogSidebar({ onFilterChange }) {
3333
useEffect(() => {
3434
const filters = [];
3535

36-
filters.push((l) => selectedCatalogs.includes(l.catalog.name));
36+
filters.push((l) => selectedCatalogs.includes(l.catalog?.name));
3737

3838
if (searchTerm && searchTerm.length > 0) {
3939
filters.push(

0 commit comments

Comments
 (0)