getkirby / kirby

Kirby's core application folder
https://getkirby.com
Other
1.32k stars 168 forks source link

[3.7.0-rc.1] type check failed for prop "columns". Expected Object, got Array #4371

Closed distantnative closed 2 years ago

distantnative commented 2 years ago

vue.esm.js:628 [Vue warn]: Invalid prop: type check failed for prop "columns". Expected Object, got Array 

found in

---> <KCollection> at src/components/Layout/Collection.vue
       <KDropzone> at src/components/Layout/Dropzone.vue
         <KPagesSection> at src/components/Sections/PagesSection.vue
           <KColumn> at src/components/Layout/Column.vue
             <KGrid> at src/components/Layout/Grid.vue
               <KSections> at src/components/Sections/Sections.vue
                 <KView> at src/components/Layout/View.vue
                   <KPanel> at src/components/Layout/Panel.vue
                     <KInside> at src/components/Layout/Inside.vue
                       <KPageView> at src/components/Views/PageView.vue
                         <Fiber>
                           <Root>
afbora commented 2 years ago

Where are we getting this error?

distantnative commented 2 years ago

I got it on several Panel views with sections. My guess is that if no columns are defined, an empty array instead of object is passed to the components and that's why

distantnative commented 2 years ago

Having problems to reproduce it myself now