Skip to content

Commit

Permalink
Merge pull request #431 from ertush/hotfix
Browse files Browse the repository at this point in the history
Hotfix
  • Loading branch information
ertush authored Jul 22, 2024
2 parents f01ed30 + 17e63ee commit 21f9561
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions pages/facilities/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ export async function getServerSideProps(ctx) {
break;
case 'services':

url = `${process.env.NEXT_PUBLIC_API_URL}/facilities/${option}/?page_size=100&ordering=name`;
url = `${process.env.NEXT_PUBLIC_API_URL}/facilities/${option}/?page_size=300&ordering=name`;

try {

Expand All @@ -489,7 +489,7 @@ export async function getServerSideProps(ctx) {
break;
case 'infrastructure':

url = `${process.env.NEXT_PUBLIC_API_URL}/facilities/${option}/?page_size=100&page=1`;
url = `${process.env.NEXT_PUBLIC_API_URL}/facilities/${option}/?page_size=300&page=1`;

try {

Expand All @@ -514,7 +514,7 @@ export async function getServerSideProps(ctx) {

break;
case 'specialities':
url = `${process.env.NEXT_PUBLIC_API_URL}/facilities/${option}/?page_size=2000&ordering=name`;
url = `${process.env.NEXT_PUBLIC_API_URL}/facilities/${option}/?page_size=300&ordering=name`;

try {

Expand Down
6 changes: 3 additions & 3 deletions pages/facilities/edit/[id].js
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ EditFacility.getInitialProps = async (ctx) => {
break;
case 'services':

url = `${process.env.NEXT_PUBLIC_API_URL}/facilities/${option}/?page_size=100&ordering=name`;
url = `${process.env.NEXT_PUBLIC_API_URL}/facilities/${option}/?page_size=300&ordering=name`;

try {

Expand All @@ -628,7 +628,7 @@ EditFacility.getInitialProps = async (ctx) => {
break;
case 'infrastructure':

url = `${process.env.NEXT_PUBLIC_API_URL}/facilities/${option}/?page_size=100&page=1`;
url = `${process.env.NEXT_PUBLIC_API_URL}/facilities/${option}/?page_size=300&page=1`;

try {

Expand All @@ -653,7 +653,7 @@ EditFacility.getInitialProps = async (ctx) => {

break;
case 'specialities':
url = `${process.env.NEXT_PUBLIC_API_URL}/facilities/${option}/?page_size=2000&ordering=name`;
url = `${process.env.NEXT_PUBLIC_API_URL}/facilities/${option}/?page_size=300&ordering=name`;

try {

Expand Down
2 changes: 2 additions & 0 deletions pages/user/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -918,6 +918,7 @@ function User(props){
}
}


User.getInitialProps = async (ctx) => {
const zSchema = z.object({
id: z.string().optional(),
Expand Down Expand Up @@ -1094,4 +1095,5 @@ User.getInitialProps = async (ctx) => {

}


export default withRouter(User)

0 comments on commit 21f9561

Please sign in to comment.