@vishu1301/script-writing 1.2.0 → 1.2.2
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 +10 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2420,6 +2420,16 @@ function useScriptBreakdownScene(options) {
|
|
|
2420
2420
|
setSceneBrief("");
|
|
2421
2421
|
autoTaggedSceneRef.current = null;
|
|
2422
2422
|
}, [options.scene_url]);
|
|
2423
|
+
useEffect(() => {
|
|
2424
|
+
if (options.preLoadedTags && options.preLoadedTags.length > 0) {
|
|
2425
|
+
setTags((prev) => {
|
|
2426
|
+
if (JSON.stringify(prev) === JSON.stringify(options.preLoadedTags)) {
|
|
2427
|
+
return prev;
|
|
2428
|
+
}
|
|
2429
|
+
return options.preLoadedTags || [];
|
|
2430
|
+
});
|
|
2431
|
+
}
|
|
2432
|
+
}, [options.preLoadedTags]);
|
|
2423
2433
|
const clearSelection = useCallback(() => {
|
|
2424
2434
|
var _a;
|
|
2425
2435
|
setSelectionMenu(null);
|