Browse Source

case?: string;

visuddhinanda 2 years ago
parent
commit
b29996581f
1 changed files with 5 additions and 5 deletions
  1. 5 5
      dashboard/src/pages/admin/relation/list.tsx

+ 5 - 5
dashboard/src/pages/admin/relation/list.tsx

@@ -68,8 +68,8 @@ export const CaseValueEnum = () => {
 
 
 export interface IRelationRequest {
 export interface IRelationRequest {
   id?: string;
   id?: string;
-  name?: string;
-  case?: string[];
+  name: string;
+  case?: string;
   to?: string[];
   to?: string[];
   editor?: IUser;
   editor?: IUser;
   updated_at?: string;
   updated_at?: string;
@@ -91,8 +91,8 @@ export interface IRelationResponse {
 export interface IRelation {
 export interface IRelation {
   sn?: number;
   sn?: number;
   id?: string;
   id?: string;
-  name?: string;
-  case?: string[];
+  name: string;
+  case?: string;
   to?: string[];
   to?: string[];
   updatedAt?: number;
   updatedAt?: number;
   createdAt?: number;
   createdAt?: number;
@@ -293,7 +293,7 @@ const Widget = () => {
             const date = new Date(item.created_at ? item.created_at : 0);
             const date = new Date(item.created_at ? item.created_at : 0);
             const date2 = new Date(item.updated_at ? item.updated_at : 0);
             const date2 = new Date(item.updated_at ? item.updated_at : 0);
             return {
             return {
-              sn: id + 1,
+              sn: offset + id + 1,
               id: item.id,
               id: item.id,
               name: item.name,
               name: item.name,
               case: item.case,
               case: item.case,