Still join them on create tho

This commit is contained in:
rijkvanzanten
2021-08-13 12:08:44 -04:00
parent 8d5ce4e91d
commit 1b950b07de

View File

@@ -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;
},