Skip to content

Commit 9fd0264

Browse files
committed
Fixed an issue where the WATCH_SOURCE setting could be ignored.
1 parent 8aa45bf commit 9fd0264

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

django_react/render.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,14 @@ def render_component(
105105
if not os.path.exists(path_to_source):
106106
raise ComponentSourceFileNotFound(path_to_source)
107107

108+
if watch_source is None:
109+
watch_source = WATCH_SOURCE
110+
108111
bundled_component = None
109112
if bundle or translate or watch_source:
110113
bundled_component = bundle_component(path_to_source, translate=translate, watch=watch_source)
111114
path_to_source = bundled_component.get_assets()[0]['path']
112115

113-
if watch_source is None:
114-
watch_source = WATCH_SOURCE
115-
116116
if json_encoder is None:
117117
json_encoder = DjangoJSONEncoder
118118

0 commit comments

Comments
 (0)