Skip to content

Commit

Permalink
Update ui/app/components/transformation-edit.js
Browse files Browse the repository at this point in the history
Co-authored-by: claire bontempo <[email protected]>
  • Loading branch information
Monkeychip and hellobontempo authored Oct 2, 2024
1 parent 5313add commit 76e7c36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/app/components/transformation-edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default TransformBase.extend({
// For each role that needs to be updated, update the role with the transformation.
const updateOrCreateResponse = await this.updateOrCreateRole(record, transformationId, backend);
// If an error was returned, check error type and show a message.
const errorStatus = updateOrCreateResponse.errorStatus;
const errorStatus = updateOrCreateResponse?.errorStatus;
if (errorStatus) {
let message = `The edits to this transformation were successful, but transformations for the role ${record.id} were not edited due to a lack of permissions.`;
if (errorStatus !== 403) {
Expand Down

0 comments on commit 76e7c36

Please sign in to comment.