1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-06-09 19:24:58 +02:00

clear isPublic on a fork

This commit is contained in:
Kushagra Gour 2024-04-28 23:36:27 +05:30
parent de8164d7e1
commit 497030fb99

View File

@ -384,6 +384,7 @@ export default class App extends Component {
const fork = JSON.parse(JSON.stringify(sourceItem));
delete fork.id;
delete fork.createdBy;
delete fork.isPublic;
fork.title = '(Forked) ' + sourceItem.title;
fork.updatedOn = Date.now();
this.setCurrentItem(fork).then(() => this.refreshEditor());