Skip to content

Commit

Permalink
fix: Only publish if not published
Browse files Browse the repository at this point in the history
  • Loading branch information
surajshetty3416 committed Jun 4, 2024
1 parent 67a7a4e commit c12eedf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion builder/builder/doctype/builder_page/builder_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ def on_update(self):

if frappe.conf.developer_mode and self.is_template:
# move all assets to www/builder_assets/{page_name}
self.publish()
if not self.draft_blocks:
self.publish()

blocks = frappe.parse_json(self.blocks)
for block in blocks:
copy_img_to_asset_folder(block, self)
Expand Down

0 comments on commit c12eedf

Please sign in to comment.