diff --git a/frontend/src/components/SeedlotRegistrationSteps/OwnershipStep/index.tsx b/frontend/src/components/SeedlotRegistrationSteps/OwnershipStep/index.tsx index 3ae824df5..9361c5fe0 100644 --- a/frontend/src/components/SeedlotRegistrationSteps/OwnershipStep/index.tsx +++ b/frontend/src/components/SeedlotRegistrationSteps/OwnershipStep/index.tsx @@ -152,7 +152,6 @@ const OwnershipStep = ({ isReview }: OwnershipStepProps) => { const getFcQuery = (clientNumber: string): ForestClientType | undefined => qc.getQueryData(['forest-clients', clientNumber]); const originalSeedQty = getSeedlotBySeedlotNumberQuery.data?.data?.originalSeedQty ?? 0; - const readOnly = originalSeedQty > 0; return (
@@ -220,7 +219,7 @@ const OwnershipStep = ({ isReview }: OwnershipStepProps) => { checkPortionSum={ (updtEntry: SingleOwnerForm, id: number) => checkPortionSum(updtEntry, id) } - readOnly={isFormSubmitted || readOnly} + readOnly={isFormSubmitted || originalSeedQty > 0} isReview={isReview} /> diff --git a/oracle-api/config/application-local.yml b/oracle-api/config/application-local.yml index 5831317d3..8a5b3d520 100644 --- a/oracle-api/config/application-local.yml +++ b/oracle-api/config/application-local.yml @@ -3,5 +3,3 @@ spring: url: jdbc:oracle:thin:@tcp://localhost:1521/dbdock_01 username: THE password: default - - \ No newline at end of file