Contributions 1 min read

# Table data type not using the table config fix

We've discovered a new bug - and now it's fixed! Check out how Dino, our Pimcore developer, fixed this issue and made sure that Table data types work as intended!

Last updated on 29 August, 2025

## Key takeaways

1. Initial data defined for Pimcore's Table data type was not loaded when a new object was created.
2. The bug came from a JavaScript check on an empty array, which JavaScript does not treat as a false value.
3. After Factory's fix, the Table data type loads its configured initial data when a new object is created.

## **What was the issue?**

When you define initial data for the Table data type, that data wouldn’t be loaded when you create a new object.

## **How did you solve it?**

This was caused by a bug inside Javascript because the check was done on an empty array and the empty array is not a false value in Javascript. So I changed that check to a proper one.

## **Why is this fix important?**

This is important because now the Table data type will work as it’s supposed to work and initial data is going to be loaded when creating a new object.

## **How does it feel to contribute to a platform such as Pimcore?**

Contributing to Pimcore always feels awesome because it’s nice to contribute to the platform I use every day to make it better.

And if you want to check out this [pull request](https://github.com/pimcore/pimcore/pull/9869), just follow the link!

## Related

[Contributions **Elements expand icon issue with user permissions** We're always keen on solving visual bugs that may confuse some users and developers. This is one of those. Read more about how we solved this one and… 1 min read](https://factory.dev/pimcore-knowledge-base/contributions/elements-expand-icon-issue) [Contributions **Cut off relation in EditableDialogBox fix** The newest pull request from Factory is live! Check out how our Pimcore developer, Karlo, solved a design issue of not being able to properly use the Relation… 1 min read](https://factory.dev/pimcore-knowledge-base/contributions/relation-editabledialogbox-fix) [Contributions **New feature: Sites permission to allow user to edit sites** Our Pimcore team has finished up another new feature! Find out how it works and how they got the idea for creating it from the start. 1 min read](https://factory.dev/pimcore-knowledge-base/contributions/feature-sites-permission)

---

Source: https://factory.dev/pimcore-knowledge-base/contributions/table-data-type-fix
