From 1d46e0f3ec07c94a775a66265c67de4b823db122 Mon Sep 17 00:00:00 2001 From: Bingjie Xue Date: Thu, 23 Jun 2022 03:12:14 -0400 Subject: [PATCH] fix bug --- src/createBedSet.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/createBedSet.jsx b/src/createBedSet.jsx index ff726dd..60c3316 100644 --- a/src/createBedSet.jsx +++ b/src/createBedSet.jsx @@ -27,7 +27,10 @@ export default class CreateBedSet extends React.Component { } async componentDidMount() { - this.getBedIdx() + if (this.state.myBedSet) { + this.getBedIdx() + } + } async createBedSet() {