mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-09 14:03:33 +09:00
skip when breakpoint isn't found over project, it must created by newer version
This commit is contained in:
1 parent
aeabf711ca
commit
fa2bec7f06
1 file changed
+1
@@ -6,6 +6,7 @@ let migrateBreakpoints = () => {
|
||||
print(`updating breakpoints for ${project._id}`);
|
||||
try {
|
||||
const breakpoint = db.Breakpoints.findOne({ _id: project._id });
|
||||
if (breakpoint === null) return;
|
||||
breakpoint._id = project.devTreeId;
|
||||
db.Breakpoints.insertOne(breakpoint);
|
||||
db.Breakpoints.remove({ _id: project._id }, true);
|
||||
|
||||
Reference in new issue
Block a user