fix: hide service type select when editing

This commit is contained in:
2025-10-10 20:57:30 +04:00
parent 73e3fd4ba2
commit 5aa3b4d9e2

View File

@ -115,9 +115,11 @@ const ServiceEditorModal = ({
{...form.getInputProps("cost")} {...form.getInputProps("cost")}
allowNegative={false} allowNegative={false}
/> />
{!innerProps.isEditing && (
<ServiceTypeSegmentedControl <ServiceTypeSegmentedControl
{...form.getInputProps("serviceType")} {...form.getInputProps("serviceType")}
/> />
)}
</Stack> </Stack>
</Fieldset> </Fieldset>
<Fieldset <Fieldset