@parca/profile 0.13.0 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.13.1](https://github.com/parca-dev/parca/compare/ui-v0.13.0...ui-v0.13.1) (2022-05-31)
7
+
8
+ **Note:** Version bump only for package @parca/profile
9
+
6
10
  # [0.13.0](https://github.com/parca-dev/parca/compare/ui-v0.12.38...ui-v0.13.0) (2022-05-30)
7
11
 
8
12
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parca/profile",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "Profile viewing libraries",
5
5
  "dependencies": {
6
6
  "@parca/client": "^0.13.0",
@@ -19,5 +19,5 @@
19
19
  "access": "public",
20
20
  "registry": "https://registry.npmjs.org/"
21
21
  },
22
- "gitHead": "4d00bb1f08c62bc8c33285f6844a0a4386f31442"
22
+ "gitHead": "e44d25f6f2f07bcae5391f1da61995db723452fb"
23
23
  }
@@ -199,16 +199,14 @@ export const ProfileView = ({
199
199
  </div>
200
200
 
201
201
  <div className="w-1/2">
202
- <ProfileIcicleGraph
203
- curPath={curPath}
204
- setNewCurPath={setNewCurPath}
205
- graph={
206
- response?.report.oneofKind === 'flamegraph'
207
- ? response.report.flamegraph
208
- : undefined
209
- }
210
- sampleUnit={sampleUnit}
211
- />
202
+ {response !== null && response.report.oneofKind === 'flamegraph' && (
203
+ <ProfileIcicleGraph
204
+ curPath={curPath}
205
+ setNewCurPath={setNewCurPath}
206
+ graph={response.report.flamegraph}
207
+ sampleUnit={sampleUnit}
208
+ />
209
+ )}
212
210
  </div>
213
211
  </>
214
212
  )}