Update site management for better shift type selection
Modify sites.tsx to set a default location and ensure proper value binding for the shift type select component. Replit-Commit-Author: Agent Replit-Commit-Session-Id: e5565357-90e1-419f-b9a8-6ee8394636df Replit-Commit-Checkpoint-Type: intermediate_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/6d543d2c-20b9-4ea6-93fe-70fe9b1d9f80/e5565357-90e1-419f-b9a8-6ee8394636df/IcLh7if
This commit is contained in:
parent
37cbbfa768
commit
e143aa3f60
4
.replit
4
.replit
@ -19,10 +19,6 @@ externalPort = 80
|
||||
localPort = 33035
|
||||
externalPort = 3001
|
||||
|
||||
[[ports]]
|
||||
localPort = 37459
|
||||
externalPort = 5173
|
||||
|
||||
[[ports]]
|
||||
localPort = 41295
|
||||
externalPort = 6000
|
||||
|
||||
@ -50,6 +50,7 @@ export default function Sites() {
|
||||
name: "",
|
||||
address: "",
|
||||
customerId: undefined,
|
||||
location: "roccapiemonte",
|
||||
shiftType: "fixed_post",
|
||||
minGuards: 1,
|
||||
requiresArmed: false,
|
||||
@ -69,6 +70,7 @@ export default function Sites() {
|
||||
name: "",
|
||||
address: "",
|
||||
customerId: undefined,
|
||||
location: "roccapiemonte",
|
||||
shiftType: "fixed_post",
|
||||
minGuards: 1,
|
||||
requiresArmed: false,
|
||||
@ -347,7 +349,7 @@ export default function Sites() {
|
||||
render={({ field }) => (
|
||||
<FormItem>
|
||||
<FormLabel>Tipologia Servizio</FormLabel>
|
||||
<Select onValueChange={field.onChange} defaultValue={field.value}>
|
||||
<Select onValueChange={field.onChange} value={field.value ?? undefined}>
|
||||
<FormControl>
|
||||
<SelectTrigger data-testid="select-shift-type">
|
||||
<SelectValue placeholder="Seleziona tipo servizio" />
|
||||
@ -633,7 +635,7 @@ export default function Sites() {
|
||||
render={({ field }) => (
|
||||
<FormItem>
|
||||
<FormLabel>Tipologia Servizio</FormLabel>
|
||||
<Select onValueChange={field.onChange} defaultValue={field.value}>
|
||||
<Select onValueChange={field.onChange} value={field.value ?? undefined}>
|
||||
<FormControl>
|
||||
<SelectTrigger data-testid="select-edit-shift-type">
|
||||
<SelectValue placeholder="Seleziona tipo servizio" />
|
||||
|
||||
Loading…
Reference in New Issue
Block a user