Browse Source

fix(nocodb): change attachment sample payload to array of objects

pull/4502/head
Wing-Kam Wong 2 years ago
parent
commit
b265f812d6
  1. 9
      packages/nocodb/src/lib/meta/helpers/populateSamplePayload.ts

9
packages/nocodb/src/lib/meta/helpers/populateSamplePayload.ts

@ -94,7 +94,14 @@ async function getSampleColumnValue(column: Column): Promise<any> {
break;
case UITypes.Attachment:
{
return '[{"url":"https://nocodb.com/dummy.png","title":"image.png","mimetype":"image/png","size":0}]';
return [
{
url: 'https://nocodb.com/dummy.png',
title: 'image.png',
mimetype: 'image/png',
size: 0,
},
];
}
break;
case UITypes.Checkbox:

Loading…
Cancel
Save