Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion __test__/entry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ describe("Entry", () => {
dataWithoutEntry.entry = {};
entry = new Entry(dataWithoutEntry, connection as any, emitter);
expect(() => entry.getField("invaliduid")).toThrowError(
"The data is unsaved. Save the data before requesting the field."
"Invalid uid, Field not found"
);
});

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@contentstack/app-sdk",
"version": "2.3.3",
"version": "2.3.4",
"types": "dist/src/index.d.ts",
"description": "The Contentstack App SDK allows you to customize your Contentstack applications.",
"main": "dist/index.js",
Expand Down
8 changes: 0 additions & 8 deletions src/entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,6 @@ class Entry {
: this._data;
let schema: Schema[0] = this.content_type.schema;

const isDataEmpty = Object.keys(value).length === 0;

if (isDataEmpty) {
throw new Error(
"The data is unsaved. Save the data before requesting the field."
);
}

try {
let skipNext = false;
let skipNextTwo = false;
Expand Down
Loading