diff --git a/readme.txt b/readme.txt index a9ed471ec..2852326e4 100644 --- a/readme.txt +++ b/readme.txt @@ -69,6 +69,8 @@ e.g. [ Bug fix ][ Table of Contents ] Fixed the issue with inner blocks not working correctly. [ Add Function ][ Blog Card (Pro) ] Add block variation function. +[ Bug fix ][ Outer (Pro) ] Fixed a bug in the initial setting of divider for each device. + = 1.62.0 = [ Add Block ][ Blog Card (Pro) ] Add blog card block. [ Add Block ][ New Badge Block (Pro) ] Add a block to display recent posts. diff --git a/src/blocks/_pro/outer/component-divider.js b/src/blocks/_pro/outer/component-divider.js index 6cd5b5e2a..6844a5748 100644 --- a/src/blocks/_pro/outer/component-divider.js +++ b/src/blocks/_pro/outer/component-divider.js @@ -81,9 +81,8 @@ const componentDivider = ( if (level > 0) { return ( 0) { return ( - {level_pc && renderSVG(level_pc, 'upper', 'pc')} - {level_tablet && renderSVG(level_tablet, 'upper', 'tablet')} - {level_mobile && renderSVG(level_mobile, 'upper', 'mobile')} + {level_pc !== 0 && level_pc && renderSVG(level_pc, 'upper', 'pc')} + {level_tablet !== 0 && level_tablet && renderSVG(level_tablet, 'upper', 'tablet')} + {level_mobile !== 0 && level_mobile && renderSVG(level_mobile, 'upper', 'mobile')} ); } @@ -210,9 +205,9 @@ const componentDivider = ( if (levelSettingPerDevice) { return ( <> - {level_pc && renderSVG(level_pc, 'lower', 'pc')} - {level_tablet && renderSVG(level_tablet, 'lower', 'tablet')} - {level_mobile && renderSVG(level_mobile, 'lower', 'mobile')} + {level_pc !== 0 && level_pc && renderSVG(level_pc, 'lower', 'pc')} + {level_tablet !== 0 && level_tablet && renderSVG(level_tablet, 'lower', 'tablet')} + {level_mobile !== 0 && level_mobile && renderSVG(level_mobile, 'lower', 'mobile')} ); }