Skip to content

Commit

Permalink
fix: redux initial error
Browse files Browse the repository at this point in the history
  • Loading branch information
mintsweet committed Sep 11, 2024
1 parent 2a063b2 commit bc1a5cd
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions config-ui/src/app/routrer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ const PATH_PREFIX = import.meta.env.DEVLAKE_PATH_PREFIX ?? '/';

export const router = createBrowserRouter(
[
{
path: 'db-migrate',
element: <DBMigrate />,
},
{
path: '/',
element: <App />,
Expand All @@ -54,10 +58,6 @@ export const router = createBrowserRouter(
index: true,
element: <Navigate to="projects" />,
},
{
path: 'db-migrate',
element: <DBMigrate />,
},
{
path: 'onboard',
element: <Onboard />,
Expand Down
2 changes: 1 addition & 1 deletion config-ui/src/features/connections/slice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const initialState: {
connections: IConnection[];
webhooks: IWebhook[];
} = {
status: 'idle',
status: 'loading',
plugins: [],
connections: [],
webhooks: [],
Expand Down
2 changes: 1 addition & 1 deletion config-ui/src/features/onboard/slice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const done = createAsyncThunk('onboard/done', async (_, { getState }) =>
});

const initialState: { status: IStatus; error?: unknown; data: DataType } = {
status: 'idle',
status: 'loading',
data: {
initial: true,
step: 0,
Expand Down
2 changes: 1 addition & 1 deletion config-ui/src/features/version/slice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const initialState: {
error?: unknown;
version: string;
} = {
status: 'idle',
status: 'loading',
version: '',
};

Expand Down
2 changes: 1 addition & 1 deletion config-ui/src/types/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
*
*/

export type IStatus = 'idle' | 'loading' | 'success' | 'failed';
export type IStatus = 'loading' | 'success' | 'failed';

0 comments on commit bc1a5cd

Please sign in to comment.