Skip to content

Commit

Permalink
Merge pull request #59 from REAN-Foundation/release/uat-0.2.9
Browse files Browse the repository at this point in the history
Fixed hospital edit view issue.
  • Loading branch information
dattatraya-inflection authored Sep 20, 2024
2 parents bfb8c46 + 74c3564 commit e621f6d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ export const load: PageServerLoad = async (event: RequestEvent) => {
}
const hospital = response.Data.Hospital;
const id = response.Data.Hospital.id;
const healthSystems_ = await searchHealthSystems(sessionId);
const healthSystems_ = await searchHealthSystems(sessionId, {
itemsPerPage: 200
});
const healthSystems = healthSystems_.Data.HealthSystems.Items;

return {
Expand Down
4 changes: 3 additions & 1 deletion src/routes/users/[userId]/hospitals/[id]/edit/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,11 @@
name="healthSystemId"
class="select select-primary w-full "
>
<option value={healthSystemId}>{r[0].Name}</option>
<option value={healthSystemId}>{healthSystemName}</option>
{#each healthSystems as healthSystem}
{#if _healthSystemId !== healthSystem.id}
<option value={healthSystem.id}>{healthSystem.Name}</option>
{/if}
{/each}
</select>
<input type="text" hidden bind:value={healthSystemId}>
Expand Down

0 comments on commit e621f6d

Please sign in to comment.