Skip to content

Commit

Permalink
fix(segmentation): resolve variable declaration and null check issues (
Browse files Browse the repository at this point in the history
  • Loading branch information
sedghi authored Mar 4, 2025
1 parent cd299e4 commit 029966d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,12 @@ workflows:
- TEST:
requires:
- CHECKOUT
- HOLD_FOR_APPROVAL:
type: approval
requires:
- BUILD
# - HOLD_FOR_APPROVAL:
# type: approval
# requires:
# - BUILD
- NPM_PUBLISH:
requires:
- HOLD_FOR_APPROVAL
- BUILD

# VS Code Extension Version: 1.5.1
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {

let referencedImageIds;
if (viewport) {
const referencedImageIds = viewport.getImageIds();
referencedImageIds = viewport.getImageIds();
const isValidVolumeForSphere = csUtils.isValidVolume(referencedImageIds);
if (!isValidVolumeForSphere) {
throw new Error(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ function getStrategyData({
strategy: unknown;
}) {
if (
('volumeId' in operationData && operationData.volumeId !== undefined) ||
('volumeId' in operationData && operationData.volumeId != null) ||
('referencedVolumeId' in operationData &&
operationData.referencedVolumeId !== undefined)
operationData.referencedVolumeId != null)
) {
return getStrategyDataForVolumeViewport({ operationData });
}
Expand Down

0 comments on commit 029966d

Please sign in to comment.