Skip to content

Commit

Permalink
Improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamadNateqi committed Apr 3, 2024
1 parent 7fd96b7 commit 75c411b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion includes/class-wcpdf-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -1348,7 +1348,9 @@ public function ajax_fetch_pdf_document_data(): void {
wp_send_json_success( $documents_data );
}

wp_die();
wp_send_json_error( array(
'message' => esc_html__( 'Documents data is empty!', 'woocommerce-pdf-invoices-packing-slips' ),
) );
}

}
Expand Down

0 comments on commit 75c411b

Please sign in to comment.