Skip to content

Commit 623fb9f

Browse files
committed
Had to comment out this assert - new record allowed to not have ID
1 parent 269ef0d commit 623fb9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/json-api/src/-private/builders/save-record.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export function createRecord(record: unknown, options: ConstrainedRequestOptions
140140
const identifier = recordIdentifierFor(record);
141141
assert(`Expected to be given a record instance`, identifier);
142142
// TODO: seems to be wrong assert here, at least message is confusing
143-
assert(`Cannot delete a record that does not have an associated type and id.`, isExisting(identifier));
143+
// assert(`Cannot delete a record that does not have an associated type and id.`, isExisting(identifier));
144144

145145
const urlOptions: CreateRecordUrlOptions = {
146146
identifier: identifier,

0 commit comments

Comments
 (0)