File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -193,19 +193,22 @@ export default {
193193 this .disabled = true ;
194194
195195 try {
196- this .getRecordData ();
196+ await this .getRecordData ();
197197 } catch (error) {
198198 const regex = / 4\d {2} / g ; // 4xx error, e.g.: 400, 404, etc
199199 const errorToStr = error .toString () || ' ' ;
200200 if (! errorToStr .match (regex)) {
201201 usecveRecordStore ().isPublished = false ;
202- usecveRecordStore ().isReserved = false ; // only a cve-id can be in a 'reserved' state; this should always be false
202+ // only a cve-id can be in a 'reserved' state; this should always be
203+ // false
204+ usecveRecordStore ().isReserved = false ;
203205 usecveRecordStore ().isRejected = false ;
204206 this .handleServerError ();
205207 }
206208 } finally {
207- if (! usecveRecordStore ().serverError && ! usecveRecordStore ().isPublished && ! usecveRecordStore ().isReserved && ! usecveRecordStore ().isRejected ) {
208- this .getIdData ();
209+ if (! usecveRecordStore ().serverError && ! usecveRecordStore ().isPublished
210+ && ! usecveRecordStore ().isReserved && ! usecveRecordStore ().isRejected ) {
211+ await this .getIdData ();
209212 }
210213 }
211214 },
You can’t perform that action at this time.
0 commit comments