Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
troyeguo committed Jan 14, 2024
1 parent 0d1e3e4 commit cdda635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/dialogs/feedbackDialog/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class FeedbackDialog extends Component<
const system = os.platform() + " " + os.version();
const axios = window.require("axios");
let fileName = "";
if (this.state.uploadUrl) {
if (this.state.fileContent && this.state.uploadUrl) {
var segments = this.state.uploadUrl.split("/").reverse()[0];
fileName = segments.split("?")[0];
}
Expand Down

0 comments on commit cdda635

Please sign in to comment.