mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Still join them on create tho
This commit is contained in:
@@ -111,9 +111,8 @@ export class PayloadService {
|
||||
return value;
|
||||
},
|
||||
async csv({ action, value }) {
|
||||
if (!value || Array.isArray(value)) return;
|
||||
if (action === 'read') return value.split(',');
|
||||
|
||||
if (!value) return;
|
||||
if (action === 'read' && Array.isArray(value) === false) return value.split(',');
|
||||
if (Array.isArray(value)) return value.join(',');
|
||||
return value;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user