Skip to content

Commit

Permalink
Fix TypeError when unparenting
Browse files Browse the repository at this point in the history
  • Loading branch information
SqAtx authored and diegogangl committed Apr 7, 2024
1 parent bd75223 commit 95e9022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GTG/core/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ def unparent(self, item_id: UUID, parent_id: UUID) -> None:
parent = self.lookup[parent_id]

# remove inline references to the former subtask
parent.content = re.sub(r'\{\!\s*'+item_id+'\s*\!\}','',parent.content)
parent.content = re.sub(r'\{\!\s*'+str(item_id)+'\s*\!\}','',parent.content)

self.model.append(item)
parent.notify('has_children')
Expand Down

0 comments on commit 95e9022

Please sign in to comment.