Signed-off-by: Pranav C <pranavxc@gmail.com>
@ -5,6 +5,7 @@
</head>
<body {{ BODY_ATTRS }}>
{{ APP }}
<a href="https://nocodb.com" style="display:none">Created with NocoDB</a>
</body>
<script>
setTimeout(() => {
@ -72,7 +72,7 @@ export async function tableSampleData(req: Request, res: Response) {
const model = await Model.getByIdOrName({ id: req.params.tableId });
res // todo: pagination
.json(await populateSamplePayload(model, true, req.params.operation));
.json(await populateSamplePayload(model, false, req.params.operation));
}
const router = Router({ mergeParams: true });
@ -34,13 +34,6 @@ export default async function populateSamplePayload(
)
continue;
if (
operation === 'update' &&
[UITypes.LinkToAnotherRecord, UITypes.Lookup].includes(column.uidt)
) {
if (operation === 'delete' && model.primaryKey?.title !== column.title)