From 10bb987c64c6f809113722376c81da739bcfa82f Mon Sep 17 00:00:00 2001 From: Pranav C Date: Fri, 14 Oct 2022 11:35:57 +0530 Subject: [PATCH] fix(api): remove default sort field option Signed-off-by: Pranav C --- .../nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts b/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts index 8e4daffc5e..9d44175369 100644 --- a/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts +++ b/packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts @@ -1332,7 +1332,7 @@ class BaseModelSqlv2 { ); obj.offset = Math.max(+(args.offset || args.o) || 0, 0); obj.fields = args.fields || args.f || '*'; - obj.sort = args.sort || args.s || this.model.primaryKey?.title; + obj.sort = args.sort || args.s; return obj; }