From e8e32e22d4e6abc011c4f8ff0e71b0a44031d5ca Mon Sep 17 00:00:00 2001 From: seniorITdev Date: Fri, 10 May 2024 10:34:47 +0200 Subject: [PATCH] fix project auto complete --- libs/hpc-data/src/lib/projects.ts | 2 -- libs/hpc-dummy/src/lib/dummy.ts | 14 -------------- .../async-autocomplete-field-ftsadmin.tsx | 2 -- 3 files changed, 18 deletions(-) diff --git a/libs/hpc-data/src/lib/projects.ts b/libs/hpc-data/src/lib/projects.ts index cf61cdb2d..ff52df3da 100644 --- a/libs/hpc-data/src/lib/projects.ts +++ b/libs/hpc-data/src/lib/projects.ts @@ -24,7 +24,6 @@ const PDF = t.type({ export const PROJECT = t.type({ id: t.number, - restricted: t.boolean, createdAt: t.string, updatedAt: t.string, code: t.union([t.string, t.null]), @@ -43,7 +42,6 @@ export const PROJECT = t.type({ export const PROJECT_DETAIL = t.intersection([ t.type({ id: t.number, - restricted: t.boolean, createdAt: t.string, updatedAt: t.string, code: t.union([t.string, t.null]), diff --git a/libs/hpc-dummy/src/lib/dummy.ts b/libs/hpc-dummy/src/lib/dummy.ts index 4623596a8..3ea977c00 100644 --- a/libs/hpc-dummy/src/lib/dummy.ts +++ b/libs/hpc-dummy/src/lib/dummy.ts @@ -1869,7 +1869,6 @@ export class Dummy { return [ { id: 1987, - restricted: false, createdAt: '2002-02-28T00:00:00.000Z', updatedAt: '2017-02-06T20:16:57.141Z', code: 'apts626', @@ -1886,7 +1885,6 @@ export class Dummy { }, { id: 1988, - restricted: false, createdAt: '2002-02-28T00:00:00.000Z', updatedAt: '2017-02-06T20:16:57.153Z', code: 'apts627', @@ -1903,7 +1901,6 @@ export class Dummy { }, { id: 1989, - restricted: false, createdAt: '2002-02-28T00:00:00.000Z', updatedAt: '2017-02-06T20:16:57.185Z', code: 'apts628', @@ -1920,7 +1917,6 @@ export class Dummy { }, { id: 1991, - restricted: false, createdAt: '2002-02-28T00:00:00.000Z', updatedAt: '2017-02-06T20:16:57.306Z', code: 'apts630', @@ -1937,7 +1933,6 @@ export class Dummy { }, { id: 2001, - restricted: false, createdAt: '2002-02-28T00:00:00.000Z', updatedAt: '2017-02-06T20:16:57.819Z', code: 'apts641', @@ -1954,7 +1949,6 @@ export class Dummy { }, { id: 2002, - restricted: false, createdAt: '2002-02-28T00:00:00.000Z', updatedAt: '2017-02-06T20:16:57.909Z', code: 'apts645', @@ -1971,7 +1965,6 @@ export class Dummy { }, { id: 2004, - restricted: false, createdAt: '2002-02-28T00:00:00.000Z', updatedAt: '2017-02-06T20:16:57.938Z', code: 'apts647', @@ -1988,7 +1981,6 @@ export class Dummy { }, { id: 2027, - restricted: false, createdAt: '2002-02-28T00:00:00.000Z', updatedAt: '2017-02-06T20:16:59.008Z', code: 'apts673', @@ -2005,7 +1997,6 @@ export class Dummy { }, { id: 2028, - restricted: false, createdAt: '2002-02-28T00:00:00.000Z', updatedAt: '2017-02-06T20:16:59.019Z', code: 'apts674', @@ -2022,7 +2013,6 @@ export class Dummy { }, { id: 2043, - restricted: false, createdAt: '2002-02-28T00:00:00.000Z', updatedAt: '2017-02-06T20:16:59.639Z', code: 'apts690', @@ -2039,7 +2029,6 @@ export class Dummy { }, { id: 2045, - restricted: false, createdAt: '2002-02-28T00:00:00.000Z', updatedAt: '2017-02-06T20:16:59.686Z', code: 'apts692', @@ -2056,7 +2045,6 @@ export class Dummy { }, { id: 2046, - restricted: false, createdAt: '2002-02-28T00:00:00.000Z', updatedAt: '2017-02-06T20:16:59.740Z', code: 'apts693', @@ -2073,7 +2061,6 @@ export class Dummy { }, { id: 2047, - restricted: false, createdAt: '2002-02-28T00:00:00.000Z', updatedAt: '2017-02-06T20:16:59.810Z', code: 'apts694', @@ -2090,7 +2077,6 @@ export class Dummy { }, { id: 2048, - restricted: false, createdAt: '2002-02-28T00:00:00.000Z', updatedAt: '2017-02-06T20:16:59.822Z', code: 'apts695', diff --git a/libs/hpc-ui/src/lib/components/form-fields/async-autocomplete-field-ftsadmin.tsx b/libs/hpc-ui/src/lib/components/form-fields/async-autocomplete-field-ftsadmin.tsx index 064679986..6d4991d99 100644 --- a/libs/hpc-ui/src/lib/components/form-fields/async-autocomplete-field-ftsadmin.tsx +++ b/libs/hpc-ui/src/lib/components/form-fields/async-autocomplete-field-ftsadmin.tsx @@ -224,7 +224,6 @@ const AsyncAutocompleteSelect = ({ (responseValue as projects.Project).code }]`, value: responseValue.id, - restricted: (responseValue as projects.Project).restricted, }; } else if ( name === 'sourceGoverningEntities' || @@ -703,7 +702,6 @@ const FormikAsyncAutocompleteSelect = ({ (responseValue as projects.Project).code }]`, value: responseValue.id, - restricted: (responseValue as projects.Project).restricted, }; } else if ( name === 'sourceGoverningEntities' ||