Skip to content

Commit

Permalink
Fiks at subeventer ikke alltid kommer på edit
Browse files Browse the repository at this point in the history
  • Loading branch information
MathiasSJacobsen committed Dec 14, 2020
1 parent 5d7d26b commit 3eabe53
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/BackOffice/CreateNewEvent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,8 @@ const CreateNewEvent = ({

/** State som sier om vi øsnker et event med subevents, for å kunne få opp en ny side */
const [newSubeventPage, setNewSubeventPage] = useState(
editing && existingEvent.posts.length > 0
editing && existingEvent.posts[0].title !== "" // This is just a quick fix should be looked at later
);

const fixOrderOnPosts = () => {
const getGroupOrder = () => {
const order = [];
Expand Down

0 comments on commit 3eabe53

Please sign in to comment.