mirror of
https://github.com/chinchang/web-maker.git
synced 2025-08-01 19:10:22 +02:00
remove the item- prefix from item ids
This commit is contained in:
@@ -959,8 +959,7 @@ export default class App extends Component {
|
|||||||
trackEvent('ui', LocalStorageKeys.LOGIN_AND_SAVE_MESSAGE_SEEN, 'local');
|
trackEvent('ui', LocalStorageKeys.LOGIN_AND_SAVE_MESSAGE_SEEN, 'local');
|
||||||
}
|
}
|
||||||
var isNewItem = !this.state.currentItem.id;
|
var isNewItem = !this.state.currentItem.id;
|
||||||
this.state.currentItem.id =
|
this.state.currentItem.id = this.state.currentItem.id || generateRandomId();
|
||||||
this.state.currentItem.id || 'item-' + generateRandomId();
|
|
||||||
if (
|
if (
|
||||||
this.state.currentItem.createdBy &&
|
this.state.currentItem.createdBy &&
|
||||||
this.state.currentItem.createdBy !== this.state.user.uid
|
this.state.currentItem.createdBy !== this.state.user.uid
|
||||||
|
Reference in New Issue
Block a user