Fix schema for instrumentwidget bookmarks

This commit is contained in:
Lorenz Padberg 2024-04-03 13:02:57 +02:00
parent 4bab3877f3
commit 40703c3681
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ def find_content(content_list, bookmark):
if content is None:
return ''
if content['type'] in ['text_block', 'subtitle', 'solution', 'basic_knowledge']:
return content['value']['text']
return content['value'].get('text', '')
return content_dict.get(content['type'], '')
class NoteNode(DjangoObjectType):