Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Andcool-Systems committed Aug 7, 2024
1 parent ec250b5 commit e5044c7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/app/me/settings/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const Page = () => {
queryKey: ["userConnections"],
retry: false,
queryFn: async () => {
const res = await authApi.get("user/me/settings", { withCredentials: true, validateStatus: () => true });
const res = await authApi.get("user/me/settings");
const data = res.data as SettingsResponse;
setLoaded(true);
return data;
Expand Down
8 changes: 7 additions & 1 deletion src/app/modules/adaptiveGrid.module.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,13 @@ const AdaptiveGrid = ({ child_width, children, header }: AdaptiveGridProps) => {
{header}
</div>
}
<div id='layout_parent' style={{ width: '100%', display: 'flex', columnGap: '15px', justifyContent: children?.length >= columnCount ? 'center' : 'flex-start' }}>
<div id='layout_parent' style={{
width: '100%',
display: 'flex',
columnGap: '15px',
justifyContent: children?.length >= columnCount ? 'center' : 'flex-start',
flexDirection: columnCount === 1 ? 'column' : 'row'
}}>
{columns}
</div>
</>
Expand Down
4 changes: 1 addition & 3 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ const Home = async () => {
let pong = null;
try {
pong = await axios.get(process.env.NEXT_PUBLIC_GLOBAL_API_URL + 'ping', { validateStatus: () => true });
} catch (e) {
console.log(e);
}
} catch (e) { }
return (
<HomeClient pong={pong?.status} />
)
Expand Down

0 comments on commit e5044c7

Please sign in to comment.