Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
jfkonecn committed Dec 17, 2024
1 parent 2cc0b2c commit 002dfd6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ public ResponseEntity<Problem> handleDatabaseReadOnlyException(DatabaseReadOnlyE

@Override
public ProblemBuilder prepare(final Throwable throwable, final StatusType status, final URI type) {

Collection<String> activeProfiles = Arrays.asList(env.getActiveProfiles());

if (activeProfiles.contains(JHipsterConstants.SPRING_PROFILE_PRODUCTION)) {
Expand All @@ -176,7 +175,6 @@ public ProblemBuilder prepare(final Throwable throwable, final StatusType status
.map(this::toProblem)
.orElse(null));
}

if (throwable instanceof DataAccessException) {
return Problem.builder()
.withType(type)
Expand All @@ -188,7 +186,6 @@ public ProblemBuilder prepare(final Throwable throwable, final StatusType status
.map(this::toProblem)
.orElse(null));
}

if (containsPackageName(throwable.getMessage())) {
return Problem.builder()
.withType(type)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,14 @@ export class AuthDownloadButton extends React.Component<IAuthDownloadButton> {
};

render() {
const { routing, authenticationStore, buttonText, ...rest } = this.props;
const {
routing,
authenticationStore,
buttonText,
getDownloadData,
fileName,
...rest
} = this.props;
return (
<LoadingButton
onClick={this.onClick}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class DownloadButtonWithPromise extends React.Component<
};

render() {
const { buttonText, getDownloadData, fileName, mime, ...rest } = this.props;
const { buttonText, getDownloadData, fileName, ...rest } = this.props;
return (
<LoadingButton
onClick={this.onClick}
Expand Down

0 comments on commit 002dfd6

Please sign in to comment.