@saooti/octopus-sdk 41.1.8 → 41.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -86,7 +86,7 @@ const props = withDefaults(defineProps<{
|
|
|
86
86
|
showCount?: boolean;
|
|
87
87
|
displaySortText?: boolean;
|
|
88
88
|
sortCriteria?: PodcastSort;
|
|
89
|
-
validity?: 'true'|'false'|boolean;
|
|
89
|
+
validity?: 'true'|'false'|''|boolean; // TODO improve this
|
|
90
90
|
rubriqueId?: Array<number>;
|
|
91
91
|
rubriquageId?: Array<number>;
|
|
92
92
|
noRubriquageId?: Array<number>;
|
|
@@ -188,8 +188,10 @@ onBeforeMount(()=>fetchContent(false))
|
|
|
188
188
|
async function fetchContent(reset: boolean): Promise<void> {
|
|
189
189
|
loading.value = true;
|
|
190
190
|
|
|
191
|
+
// Sadly we kinda have no idea what will be passed as 'validity', we need to
|
|
192
|
+
// handle multiple cases.
|
|
191
193
|
let validity: undefined|boolean = undefined;
|
|
192
|
-
if (props.validity !== undefined) {
|
|
194
|
+
if (props.validity !== undefined && props.validity !== '') {
|
|
193
195
|
validity = props.validity === 'true' || props.validity === true;
|
|
194
196
|
}
|
|
195
197
|
|