Skip to content

Commit

Permalink
fix broken payment page
Browse files Browse the repository at this point in the history
  • Loading branch information
JensRavens committed Jan 14, 2025
1 parent 7eb2f44 commit 1eb4ec7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/payslips/index.props.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
field :url, value: -> { helpers.image_file_url(pdf) }
field :permit_destroy, Boolean, value: -> { helpers.policy(self).destroy? }
end
field :next_page_url, value: -> { path_to_next_page @payslips }
field :next_page_url, null: true, value: -> { path_to_next_page @payslips }

field :permit_create_payslip, Boolean, value: -> { helpers.policy(Payslip).create? }
2 changes: 1 addition & 1 deletion data.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export interface DataSchema {
url: string;
permitDestroy: boolean;
}>;
nextPageUrl: string;
nextPageUrl: string | null;
permitCreatePayslip: boolean;
};
'payslips/new': {
Expand Down

0 comments on commit 1eb4ec7

Please sign in to comment.