@quesmed/types-rn 2.4.2 → 2.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -53,7 +53,7 @@ export declare const SAVE_MARKSHEET: import("@apollo/client").DocumentNode;
|
|
|
53
53
|
export declare const updateMarksheets: (cache: ApolloCache<any>, result: ApolloUpdateResultRestricted<ISaveMarksheetsData>, options: ApolloUpdateOptions) => void;
|
|
54
54
|
export declare const optimisticSaveMarksheets: (marksheet: IMarksheet, marksheetInput: ISaveMarksheetInput, questionIndex: number) => ISaveMarksheetsData;
|
|
55
55
|
export interface ISaveMarksheetsVar {
|
|
56
|
-
|
|
56
|
+
input: ISaveMarksheetInput[];
|
|
57
57
|
}
|
|
58
58
|
export declare type ISaveMarksheetsData = RestrictedData<(graphqlNormalize & IMarksheet)[], 'saveMarksheets'>;
|
|
59
59
|
/**
|
|
@@ -1754,8 +1754,8 @@ const updateMarksheets = (cache, result, options) => {
|
|
|
1754
1754
|
}
|
|
1755
1755
|
try {
|
|
1756
1756
|
for (let i = 0; i < saveMarksheets.length; i++) {
|
|
1757
|
-
const {
|
|
1758
|
-
const marksheet =
|
|
1757
|
+
const { input } = variables;
|
|
1758
|
+
const marksheet = input[i];
|
|
1759
1759
|
cache.writeFragment({
|
|
1760
1760
|
id: cache.identify({
|
|
1761
1761
|
id: saveMarksheets[i],
|