summaryrefslogtreecommitdiff
path: root/frontend/src/components/modals/TextInputModal.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/components/modals/TextInputModal.js')
-rw-r--r--frontend/src/components/modals/TextInputModal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/components/modals/TextInputModal.js b/frontend/src/components/modals/TextInputModal.js
index d5edb60b..d0918c7e 100644
--- a/frontend/src/components/modals/TextInputModal.js
+++ b/frontend/src/components/modals/TextInputModal.js
@@ -12,7 +12,7 @@ class TextInputModal extends React.Component {
}
componentDidUpdate() {
- if (this.props.initialValue) {
+ if (this.props.initialValue && this.textInput) {
this.textInput.value = this.props.initialValue
}
}