@vishu1301/script-writing 1.2.7 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2486,6 +2486,7 @@ function useScriptBreakdownScene(options) {
|
|
|
2486
2486
|
react.useEffect(() => {
|
|
2487
2487
|
const doBulkCreate = async () => {
|
|
2488
2488
|
if (blocks.length === 0) return;
|
|
2489
|
+
if (options.preLoadedTagsLoading) return;
|
|
2489
2490
|
if (autoTaggedSceneRef.current === options.scene_url) return;
|
|
2490
2491
|
const hasPreloadedTags = options.preLoadedTags && options.preLoadedTags.length > 0;
|
|
2491
2492
|
autoTaggedSceneRef.current = options.scene_url;
|
|
@@ -2493,7 +2494,12 @@ function useScriptBreakdownScene(options) {
|
|
|
2493
2494
|
await bulkCreateTags();
|
|
2494
2495
|
};
|
|
2495
2496
|
doBulkCreate();
|
|
2496
|
-
}, [
|
|
2497
|
+
}, [
|
|
2498
|
+
blocks,
|
|
2499
|
+
options.scene_url,
|
|
2500
|
+
options.preLoadedTags,
|
|
2501
|
+
options.preLoadedTagsLoading
|
|
2502
|
+
]);
|
|
2497
2503
|
const clearSelection = react.useCallback(() => {
|
|
2498
2504
|
var _a;
|
|
2499
2505
|
setSelectionMenu(null);
|