@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.cjs
CHANGED
|
@@ -2445,6 +2445,16 @@ function useScriptBreakdownScene(options) {
|
|
|
2445
2445
|
setSceneBrief("");
|
|
2446
2446
|
autoTaggedSceneRef.current = null;
|
|
2447
2447
|
}, [options.scene_url]);
|
|
2448
|
+
react.useEffect(() => {
|
|
2449
|
+
if (options.preLoadedTags && options.preLoadedTags.length > 0) {
|
|
2450
|
+
setTags((prev) => {
|
|
2451
|
+
if (JSON.stringify(prev) === JSON.stringify(options.preLoadedTags)) {
|
|
2452
|
+
return prev;
|
|
2453
|
+
}
|
|
2454
|
+
return options.preLoadedTags || [];
|
|
2455
|
+
});
|
|
2456
|
+
}
|
|
2457
|
+
}, [options.preLoadedTags]);
|
|
2448
2458
|
const clearSelection = react.useCallback(() => {
|
|
2449
2459
|
var _a;
|
|
2450
2460
|
setSelectionMenu(null);
|