← All changes
|
modules/components/transformers/component-instance-transformer.php
+1
-1
4.2.4
→
4.0.0-dev4
View file →
| @@ -43,9 +43,9 @@ | ||
| 43 | 43 | return in_array( $component_id, self::$rendering_stack, true ); |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | private function get_rendered_content( int $component_id, ?string $instance_element_id ): string { |
| 47 | - $should_show_autosave = is_preview() || Plugin::$instance->editor->is_edit_mode(); | |
| 47 | + $should_show_autosave = is_preview(); | |
| 48 | 48 | $component = $this->get_repository()->get( $component_id, $should_show_autosave ); |
| 49 | 49 | |
| 50 | 50 | if ( ! $component || ! $this->should_render_content( $component ) ) { |
| 51 | 51 | return ''; |