From a1f768140d45f7da761dcd5d308887918715f076 Mon Sep 17 00:00:00 2001 From: SpikeHD Date: Wed, 1 Jun 2022 18:13:25 -0700 Subject: [PATCH] fix bg file path not showing --- src/ui/components/common/TextInput.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/ui/components/common/TextInput.tsx b/src/ui/components/common/TextInput.tsx index 2d8dbe2..596b0d6 100644 --- a/src/ui/components/common/TextInput.tsx +++ b/src/ui/components/common/TextInput.tsx @@ -30,12 +30,6 @@ export default class TextInput extends React.Component { } static getDerivedStateFromProps(props: IProps, state: IState) { - if (!props.readOnly) { - return { - value: state.value - } - } - return { value: props.value || '' } }