Skip to content

Commit 8362cc1

Browse files
authored
Fix: Remove parent null check when renaming files (#21)
Chore: Add major and patch release commands Fix: Remove parent null check when renaming files
1 parent e4c6908 commit 8362cc1

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@
5252
"debug": "NODE_ENV=test ./node_modules/.bin/karma start build/karma.conf.js --no-single-run --auto-watch",
5353
"build": "yarn run lint && yarn run clean && yarn run dev",
5454
"build-lib": "yarn run npm && ./node_modules/.bin/cpx './src/{**/!(__tests__)/*,*}' lib && node ./build/props-to-es2015.js && BABEL_ENV=npm NODE_ENV=production ./node_modules/.bin/babel lib -d lib",
55-
"minor": "./build/release.sh -n && ./build/publish.sh"
55+
"minor": "./build/release.sh -n && ./build/publish.sh",
56+
"major": "./build/release.sh -m && ./build/publish.sh",
57+
"patch": "./build/release.sh -p && ./build/publish.sh"
5658
},
5759
"lint-staged": {
5860
"src/**/*.js": [

src/components/ContentExplorer/ContentExplorer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,8 +806,8 @@ class ContentExplorer extends Component<DefaultProps, Props, State> {
806806
return;
807807
}
808808

809-
const { id, permissions, parent, type }: BoxItem = selected;
810-
if (!id || !permissions || !parent || !type) {
809+
const { id, permissions, type }: BoxItem = selected;
810+
if (!id || !permissions || !type) {
811811
return;
812812
}
813813

0 commit comments

Comments
 (0)