mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2026-01-27 23:19:42 -06:00
The company logo was visible in the preview but not in the editor when loading saved invoice templates. This was caused by Konva Image nodes losing their image data after JSON deserialization. Changes: - Enhanced logo detection to use multiple methods (className, constructor, instanceof) for robustness after deserialization - Check all Image nodes, not just those with name='logo', in case the name attribute is lost during serialization - Detect Image nodes that should be logos (have dimensions but no image data) - Improved error handling and logging for debugging - Applied fix to both invoice and quote PDF layout templates The logo images are now properly restored from LOGO_URL when loading saved designs, making them visible in the editor as well as the preview.