File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ const customActions = computed(() => {
203203});
204204
205205const skeletonRowsCount = computed (() => {
206- const allCols = coreStore .resource ?.columns ;
206+ const allCols = coreStore .resource ?.columns || [] ;
207207
208208 const isEnabledInConfig = (col : any ) => {
209209 return col .showIn ?.list !== false ;
@@ -253,17 +253,17 @@ const groups = computed(() => {
253253});
254254
255255const allColumns = computed (() => {
256- return coreStore .resource ?.columns ?.filter (col => col .showIn ?.show ) ?? [] ;
256+ return coreStore .resource ?.columns ?.filter (col => col .showIn ?.show );
257257});
258258
259259const otherColumns = computed (() => {
260260 const groupedColumnNames = new Set (
261- groups .value .flatMap (group => group .columns ?.map ((col : AdminForthResourceColumnCommon ) => col .name ) || [] )
261+ groups .value .flatMap (group => group .columns ?.map ((col : AdminForthResourceColumnCommon ) => col .name ))
262262 );
263263
264- return coreStore .resource ?.columns ? .filter (
264+ return coreStore .resource ?.columns .filter (
265265 col => ! groupedColumnNames .has (col .name ) && col .showIn ?.show
266- ) ?? [] ;
266+ );
267267});
268268
269269async function deleteRecord() {
You can’t perform that action at this time.
0 commit comments