Skip to content

Commit aede29b

Browse files
committed
Revert
1 parent ad4ed03 commit aede29b

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

Servers/UI/OJS.Servers.Ui/ClientApp/src/components/contests/contest-categories/ContestCategories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const ContestCategories = (props: IContestCategoriesProps) => {
4141
const textColorClassName = getColorClassName(themeColors.textColor);
4242

4343
const {
44-
data: contestCategories = [],
44+
data: contestCategories,
4545
isLoading: areCategoriesLoading,
4646
error: categoriesError,
4747
} = useGetContestCategoriesQuery();

Servers/UI/OJS.Servers.Ui/ClientApp/src/components/profile/profile-contest-participations/ProfileContestParticipations.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const ProfileContestParticipations = ({
8888
);
8989

9090
const {
91-
data: allParticipatedContests = [],
91+
data: allParticipatedContests,
9292
isLoading: areAllContestsLoading,
9393
} = useGetAllParticipatedContestsQuery(
9494
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain

Servers/UI/OJS.Servers.Ui/ClientApp/vite.config.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { visualizer } from "rollup-plugin-visualizer";
55
import { resolve } from 'path';
66
/// <reference types="vite-plugin-svgr/client" />
77

8+
const isUnminified = process.env.UNMINIFIED === 'true';
9+
810
// For development server, we want to forward all requests to /administration to /admin.html
911
const forwardToAdmin = () => {
1012
return {
@@ -22,10 +24,8 @@ const forwardToAdmin = () => {
2224
}
2325
}
2426

25-
export default defineConfig(({ mode }) => {
26-
const isUnminified = true; // process.env.UNMINIFIED === 'true';
27-
28-
return ({
27+
export default defineConfig(({ mode }) =>
28+
({
2929
appType: 'mpa', // Multi Page Application
3030
build: {
3131
minify: isUnminified ? false : 'esbuild',
@@ -55,5 +55,4 @@ export default defineConfig(({ mode }) => {
5555
'src': resolve(__dirname, 'src'),
5656
},
5757
},
58-
});
59-
});
58+
}));

0 commit comments

Comments
 (0)