Skip to content

Commit

Permalink
2.0.7 (#68)
Browse files Browse the repository at this point in the history
## 2.0.7

### @craftercms/content
- Fix `getDescriptor` crashing when `config` isn't supplied.
  • Loading branch information
rart authored Sep 2, 2022
1 parent d564a10 commit 523a4ed
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# SDK Changelog

## 2.0.7

### @craftercms/content
- Fix `getDescriptor` crashing when `config` isn't supplied.

## 2.0.6

### @craftercms/content
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@craftercms/sdk",
"version": "2.0.6",
"version": "2.0.7",
"private": true,
"workspaces": [
"packages/*"
Expand Down
2 changes: 1 addition & 1 deletion packages/content/src/ContentStoreService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function getDescriptor(path: string, config?: Partial<GetDescriptorConfig
return SDKService.httpGet<Descriptor>(composeUrl(cfg, cfg.endpoints.GET_DESCRIPTOR), {
url: path,
crafterSite: cfg.site,
flatten: Boolean(config.flatten)
flatten: Boolean(config?.flatten)
}, cfg.headers).pipe(
// Manually introduce the path into the response as descriptor endpoint does not return it.
map((descriptor: Descriptor) => {
Expand Down

0 comments on commit 523a4ed

Please sign in to comment.