Skip to content

Commit 1d11077

Browse files
authored
Merge pull request #13214 from rtibbles/channel_kinds
fix conditional for channels in useCoachMetatdataTags
2 parents 9689d96 + 8857e3d commit 1d11077

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/kolibri-common/composables/useCoachMetadataTags.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function useCoachMetadataTags(contentNode) {
2121
// With no kind, we know it is a CHANNEL.
2222
// Channel API response is shaped a little differently than Topics and Resources
2323
// so we make sure we have the right shape.
24-
if (!contentNode.kind) {
24+
if (!contentNode.kind || contentNode.kind === ContentNodeKinds.CHANNEL) {
2525
contentNode.lang = { lang_name: contentNode.lang_name, id: contentNode.lang_code };
2626
// The grade_levels and categories fields are stored as
2727
// comma-separated strings in the database

0 commit comments

Comments
 (0)