Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hakanaktas0 committed Dec 25, 2023
1 parent 3c22745 commit 3a0330f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project/backend/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def remove_workspace_tag(request):
tag = SemanticTag.objects.filter(id=tag_id)
if not tag.exists():
return JsonResponse({'message': 'There is no tag with this id.'}, status=404)
if tag not in workspace.semantic_tags.all():
if tag[0] not in workspace.semantic_tags.all():
return JsonResponse({'message': 'There is no tag with this id in this workspace.'}, status=404)
workspace.semantic_tags.remove(tag_id)
workspace.save()
Expand Down

0 comments on commit 3a0330f

Please sign in to comment.