From dc4f5feba33dd9f2cbebfbaca292153d7cfde672 Mon Sep 17 00:00:00 2001 From: Jon Waldstein Date: Tue, 8 Mar 2022 20:54:08 -0500 Subject: [PATCH] fix: cast pageSize to a number when updating --- CHANGELOG.md | 3 +++ blocks-for-eventbrite.php | 2 +- readme.txt | 7 +++++-- src/components/EditBlock.js | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 73d5336..253b074 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/blocks-for-eventbrite.php b/blocks-for-eventbrite.php index 711e899..7ff797c 100644 --- a/blocks-for-eventbrite.php +++ b/blocks-for-eventbrite.php @@ -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 diff --git a/readme.txt b/readme.txt index fb09b50..50c6bf2 100644 --- a/readme.txt +++ b/readme.txt @@ -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 @@ -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 diff --git a/src/components/EditBlock.js b/src/components/EditBlock.js index 7db65f0..e19a2b3 100644 --- a/src/components/EditBlock.js +++ b/src/components/EditBlock.js @@ -248,7 +248,7 @@ export default function EditBlock( { attributes, setAttributes } ) { value={ pageSize } onChange={ ( newPageSize ) => setAttributes( { - pageSize: newPageSize, + pageSize: Number( newPageSize ), } ) } />