Skip to content

Commit

Permalink
Merge branch 'master' of github.com:navikt/helse-speil
Browse files Browse the repository at this point in the history
  • Loading branch information
jksolbakken committed Aug 1, 2019
2 parents d400dfa + bdb7513 commit 19431b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/widgets/DynamicTextarea.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,15 @@ const DynamicTextarea = ({

DynamicTextarea.propTypes = {
name: PropTypes.string.isRequired,
value: PropTypes.string.isRequired,
value: PropTypes.string,
placeholder: PropTypes.string,
maxCharacters: PropTypes.number,
disabled: PropTypes.bool,
forwardedRef: PropTypes.any
};

DynamicTextarea.defaultProps = {
value: '',
placeholder: '',
maxCharacters: 2000,
disabled: false
Expand Down
2 changes: 1 addition & 1 deletion src/context/InnrapporteringContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ export const InnrapporteringContext = createContext({
export const InnrapporteringProvider = withBehandlingContext(
({ behandling, children }) => {
const behandlingsId = behandling && behandling.behandlingsId;
const [hasSendt, setHasSendt] = useSessionStorage('harSendtUenigheter');
const [uenigheter, setUenigheter] = useSessionStorage(
`uenigheter-${behandlingsId}`,
[]
);
const [hasSendt, setHasSendt] = useState(false);

const removeUenighet = id => {
setHasSendt(false);
Expand Down

0 comments on commit 19431b4

Please sign in to comment.