mirror of
https://github.com/chinchang/web-maker.git
synced 2025-06-10 19:50:51 +02:00
clear isPublic on a fork
This commit is contained in:
@ -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());
|
||||
|
Reference in New Issue
Block a user