Skip to content

Commit

Permalink
CSCFAIRMETA-911: Access type bugs (#694)
Browse files Browse the repository at this point in the history
* Setting expiration date didn't work
* Clearing restriction grounds gave an error
  • Loading branch information
tahme authored Jan 29, 2021
1 parent 3fcd9c9 commit 093d9fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { useStores } from '../../utils/stores'
const EmbargoExpires = () => {
const {
Qvain: {
EmbargoExpDate: { embargoExpDate, setEmbargoExpDate, readonly, Schema },
EmbargoExpDate: { value: embargoExpDate, set: setEmbargoExpDate, readonly, Schema },
},
Locale: { lang },
} = useStores()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const RestrictionGrounds = () => {
const [error, setError] = useState()

const handleBlur = () => {
const { identifier = '' } = restrictionGrounds
const { identifier = '' } = restrictionGrounds || {}
Schema.validate(identifier)
.then(() => {
setError(null)
Expand Down

0 comments on commit 093d9fe

Please sign in to comment.