### What? Updated the `FieldsToExport` component to use the current list view query (`query.columns`) instead of saved preferences to determine which fields to export. ### Why? Previously, the export field selection was based on collection preferences, which are only updated on page reload. This caused stale or incorrect field sets to be exported if the user changed visible columns without refreshing. ### How? - Replaced `getPreference` usage with `useListQuery` to access `query.columns` - Filtered out excluded fields (those prefixed with `-`) to get only the visible columns - Fallbacks to `defaultColumns` if `query.columns` is not available
Payload Import/Export Plugin
A plugin for Payload to easily import and export data.