funkhaus / wp-gql-gutenberg

GNU General Public License v3.0
4 stars 3 forks source link

Gallery columns attribute always zero on new blocks #49

Closed drewbaker closed 1 year ago

drewbaker commented 1 year ago

Steps to recreate:

  1. Create a new gallery block. Add as many images to it as you want.
  2. Don't change any gallery settings
  3. Save post

The result will be the attribute columns will be 0, but the UI will show 2 (or another number depending on how many images you have in the gallery). If you change the slider in the UI to get not the default, and then save it, then the attribute columns will be correct.

What should happen:

GQL should return the same columns number as shown in the UI.

drewbaker commented 1 year ago
Screenshot 2023-02-17 at 10 57 53 PM Screenshot 2023-02-17 at 10 58 03 PM Screenshot 2023-02-17 at 10 58 25 PM