-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node Attributes #141
base: main
Are you sure you want to change the base?
Node Attributes #141
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments that are non-blocking on the code - still trying to test it out locally but the code LGTM
@@ -87,7 +87,7 @@ const createZipArchive = async (tmpFolder, fileName) => { | |||
const moveZipFile = (tmpFolder, fileName) => { | |||
const currentPath = `${tmpFolder}/${fileName}`; | |||
const destinationPath = `${systemTdataFolder}/user-data-in/${fileName}`; | |||
fs.rename(currentPath, destinationPath, function (err) { | |||
fs.copyFile(currentPath, destinationPath, function (err) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you copying the file instead of renaming?
} = this.state; | ||
const { nodeId } = this.props; | ||
console.log(nodeId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra console log
@@ -309,10 +322,13 @@ class DictionaryPanel extends React.Component { | |||
this.onDeleteItems(props); | |||
}} | |||
renderIcon={Delete16} | |||
iconDescription={'H'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be something more descriptive?
@@ -87,10 +87,9 @@ | |||
const moveZipFile = (tmpFolder, fileName) => { | |||
const currentPath = `${tmpFolder}/${fileName}`; | |||
const destinationPath = `${systemTdataFolder}/user-data-in/${fileName}`; | |||
fs.rename(currentPath, destinationPath, function (err) { | |||
fs.copyFile(currentPath, destinationPath, function (err) { |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression
@@ -87,10 +87,9 @@ | |||
const moveZipFile = (tmpFolder, fileName) => { | |||
const currentPath = `${tmpFolder}/${fileName}`; | |||
const destinationPath = `${systemTdataFolder}/user-data-in/${fileName}`; | |||
fs.rename(currentPath, destinationPath, function (err) { | |||
fs.copyFile(currentPath, destinationPath, function (err) { |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression
Fixes #70.