From 7151cdf6a3f73ab89ab3ef74f5b6b8f786c19790 Mon Sep 17 00:00:00 2001 From: Kushagra Gour Date: Fri, 3 May 2024 14:31:09 +0530 Subject: [PATCH] remove the item- prefix from item ids --- src/components/app.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/app.jsx b/src/components/app.jsx index b18941d..46dcd85 100644 --- a/src/components/app.jsx +++ b/src/components/app.jsx @@ -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