File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed
Servers/UI/OJS.Servers.Ui/ClientApp
contests/contest-categories
profile/profile-contest-participations Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ const ContestCategories = (props: IContestCategoriesProps) => {
41
41
const textColorClassName = getColorClassName ( themeColors . textColor ) ;
42
42
43
43
const {
44
- data : contestCategories = [ ] ,
44
+ data : contestCategories ,
45
45
isLoading : areCategoriesLoading ,
46
46
error : categoriesError ,
47
47
} = useGetContestCategoriesQuery ( ) ;
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ const ProfileContestParticipations = ({
88
88
) ;
89
89
90
90
const {
91
- data : allParticipatedContests = [ ] ,
91
+ data : allParticipatedContests ,
92
92
isLoading : areAllContestsLoading ,
93
93
} = useGetAllParticipatedContestsQuery (
94
94
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ import { visualizer } from "rollup-plugin-visualizer";
5
5
import { resolve } from 'path' ;
6
6
/// <reference types="vite-plugin-svgr/client" />
7
7
8
+ const isUnminified = process . env . UNMINIFIED === 'true' ;
9
+
8
10
// For development server, we want to forward all requests to /administration to /admin.html
9
11
const forwardToAdmin = ( ) => {
10
12
return {
@@ -22,10 +24,8 @@ const forwardToAdmin = () => {
22
24
}
23
25
}
24
26
25
- export default defineConfig ( ( { mode } ) => {
26
- const isUnminified = true ; // process.env.UNMINIFIED === 'true';
27
-
28
- return ( {
27
+ export default defineConfig ( ( { mode } ) =>
28
+ ( {
29
29
appType : 'mpa' , // Multi Page Application
30
30
build : {
31
31
minify : isUnminified ? false : 'esbuild' ,
@@ -55,5 +55,4 @@ export default defineConfig(({ mode }) => {
55
55
'src' : resolve ( __dirname , 'src' ) ,
56
56
} ,
57
57
} ,
58
- } ) ;
59
- } ) ;
58
+ } ) ) ;
You can’t perform that action at this time.
0 commit comments