Skip to content

Commit

Permalink
fix: cast pageSize to a number when updating
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Waldstein committed Mar 9, 2022
1 parent 655edef commit dc4f5fe
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.1.1]
- Fix pageSize attribute by casting to number

## [1.1.0]
- Add button text field (#25)
- Add pageSize attribute / event number limit field (#26)
Expand Down
2 changes: 1 addition & 1 deletion blocks-for-eventbrite.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* Plugin Name: Blocks for Eventbrite
* Description: Gutenberg blocks that display eventbrite events
* Version: 1.1.0
* Version: 1.1.1
* Author: Jon Waldstein
* Author URI: https://jonwaldstein.com
* License: GPL-2.0-or-later
Expand Down
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Contributors: jonwaldstein
Donate link: https://www.paypal.com/paypalme/jonwaldstein
Tags: eventbrite, events, block
Requires at least: 5.3.2
Tested up to: 5.7.2
Stable tag: 1.1.0
Tested up to: 5.9.1
Stable tag: 1.1.1
Requires PHP: 7.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -44,6 +44,9 @@ As long as you have an Eventbrite account you can get the api token key [here](h

== Changelog ==

= 1.1.1: March 8, 2022 =
* fix: set pageSize to a number

= 1.1.0: May 20, 2021 =
* add: button text field to customize button text
* add: event number limit field to limit the number of events displayed
Expand Down
2 changes: 1 addition & 1 deletion src/components/EditBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export default function EditBlock( { attributes, setAttributes } ) {
value={ pageSize }
onChange={ ( newPageSize ) =>
setAttributes( {
pageSize: newPageSize,
pageSize: Number( newPageSize ),
} )
}
/>
Expand Down

0 comments on commit dc4f5fe

Please sign in to comment.