@orion-studios/payload-studio 0.6.0-beta.135 → 0.6.0-beta.136
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.
|
@@ -3136,7 +3136,7 @@ function GrapesPageEditor({
|
|
|
3136
3136
|
}, autosaveIntervalMs);
|
|
3137
3137
|
});
|
|
3138
3138
|
editor.on("orion:component-history", (entry) => {
|
|
3139
|
-
if (!historyReadyRef.current) {
|
|
3139
|
+
if (!historyReadyRef.current || historyRestoreActiveRef.current) {
|
|
3140
3140
|
return;
|
|
3141
3141
|
}
|
|
3142
3142
|
if (!entry || typeof entry !== "object" || !("component" in entry) || !("before" in entry) || !("after" in entry)) {
|
|
@@ -3012,7 +3012,7 @@ function GrapesPageEditor({
|
|
|
3012
3012
|
}, autosaveIntervalMs);
|
|
3013
3013
|
});
|
|
3014
3014
|
editor.on("orion:component-history", (entry) => {
|
|
3015
|
-
if (!historyReadyRef.current) {
|
|
3015
|
+
if (!historyReadyRef.current || historyRestoreActiveRef.current) {
|
|
3016
3016
|
return;
|
|
3017
3017
|
}
|
|
3018
3018
|
if (!entry || typeof entry !== "object" || !("component" in entry) || !("before" in entry) || !("after" in entry)) {
|
package/package.json
CHANGED