1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-31 18:50:14 +02:00

remove the item- prefix from item ids

This commit is contained in:
Kushagra Gour
2024-05-03 14:31:09 +05:30
parent a44d103484
commit 7151cdf6a3

View File

@@ -959,8 +959,7 @@ export default class App extends Component {
trackEvent('ui', LocalStorageKeys.LOGIN_AND_SAVE_MESSAGE_SEEN, 'local');
}
var isNewItem = !this.state.currentItem.id;
this.state.currentItem.id =
this.state.currentItem.id || 'item-' + generateRandomId();
this.state.currentItem.id = this.state.currentItem.id || generateRandomId();
if (
this.state.currentItem.createdBy &&
this.state.currentItem.createdBy !== this.state.user.uid