Skip to content

Commit c188a74

Browse files
committed
Fix version bug
Signed-off-by: Zihan Kuang <zihan_kuang@outlook.com>
1 parent 3b8c4e3 commit c188a74

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/custom/CustomCatalog/Helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const handleImage = async ({
6161
export const DEFAULT_DESIGN_VERSION = '0.0.0';
6262

6363
export const getVersion = (design: Pattern) => {
64-
if (design.visibility === 'public') {
64+
if (design.visibility === 'published') {
6565
return design?.catalog_data?.published_version || DEFAULT_DESIGN_VERSION;
6666
}
6767
try {

0 commit comments

Comments
 (0)