mirror of
https://github.com/directus/directus.git
synced 2026-01-23 08:58:22 -05:00
Don't double split csv values
This commit is contained in:
@@ -111,7 +111,7 @@ export class PayloadService {
|
||||
return value;
|
||||
},
|
||||
async csv({ action, value }) {
|
||||
if (!value) return;
|
||||
if (!value || Array.isArray(value)) return;
|
||||
if (action === 'read') return value.split(',');
|
||||
|
||||
if (Array.isArray(value)) return value.join(',');
|
||||
|
||||
Reference in New Issue
Block a user